You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ubooquity/root/etc/s6-overlay/s6-rc.d/svc-ubooquity/run

13 lines
407 B

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
JAVAMEM=${MAXMEM:-512}
PORT=$(jq -r '.adminPortNumber' < /config/preferences.json)
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT:-2203}" \
cd /app/ubooquity s6-setuidgid abc java -Xmx"$JAVAMEM"m \
-jar /app/ubooquity/Ubooquity.jar \
--headless --host 0.0.0.0 --remoteadmin \
--workdir /config