|
|
@ -1,9 +1,18 @@
|
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -e "$MAXMEM" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
JAVAMEM="$MAXMEM"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
JAVAMEM="512"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JAVAMEM=${MAXMEM:-512}
|
|
|
|
|
|
|
|
|
|
|
|
cd /opt/ubooquity || exit
|
|
|
|
cd /opt/ubooquity || exit
|
|
|
|
|
|
|
|
|
|
|
|
exec \
|
|
|
|
exec \
|
|
|
|
s6-setuidgid abc java -Xmx512m\
|
|
|
|
s6-setuidgid abc java -Xmx"$JAVAMEM"m\
|
|
|
|
-jar /opt/ubooquity/Ubooquity.jar \
|
|
|
|
-jar /opt/ubooquity/Ubooquity.jar \
|
|
|
|
--headless --host 0.0.0.0 \
|
|
|
|
--headless --host 0.0.0.0 \
|
|
|
|
--port 2202 --webadmin \
|
|
|
|
--port 2202 --webadmin \
|
|
|
|