oxdata/nginx/oxdata.conf
2011-07-30 13:31:04 +02:00

24 lines
611 B
Text

# oxdata gunicorn daemon
#
description "oxdata daemon"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 5
respawn
env VENV=/srv/oxdata
env USER=oxdata
env HOME=/home/oxdata
script
test -e /var/log/oxdata || (mkdir -p /var/log/oxdata && chown $USER:$USER /var/log/oxdata)
cd $VENV/oxdata
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
--bind 127.0.0.1:8087 \
--timeout 90 \
--log-level info --log-file /var/log/oxdata/oxdata.log \
--workers 5 \
$VENV/oxdata/settings.py
end script