Update realms-wiki.sh
fix docker runit script
This commit is contained in:
parent
c5c71ce1f9
commit
b30c140e86
|
@ -1,14 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
limit nofile 65335 65335
|
|
||||||
|
|
||||||
respawn
|
|
||||||
|
|
||||||
description "Realms Wiki"
|
|
||||||
author "scragg@gmail.com"
|
|
||||||
|
|
||||||
chdir /home/deploy/realms-wiki
|
|
||||||
|
|
||||||
PATH=/home/deploy/realms-wiki/.venv/bin:/usr/local/bin:/usr/bin:/bin:$PATH
|
PATH=/home/deploy/realms-wiki/.venv/bin:/usr/local/bin:/usr/bin:/bin:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
@ -30,14 +21,6 @@ if [ "${REALMS_WIKI_PORT}" == "" ]; then
|
||||||
REALMS_WIKI_PORT=5000
|
REALMS_WIKI_PORT=5000
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setuid deploy
|
|
||||||
setgid deploy
|
|
||||||
|
|
||||||
start on runlevel [2345]
|
|
||||||
stop on runlevel [!2345]
|
|
||||||
|
|
||||||
respawn
|
|
||||||
|
|
||||||
exec gunicorn \
|
exec gunicorn \
|
||||||
--name realms-wiki \
|
--name realms-wiki \
|
||||||
--access-logfile - \
|
--access-logfile - \
|
||||||
|
|
Loading…
Reference in a new issue