oxdata/nginx/oxdata.conf

25 lines
611 B
Text
Raw Normal View History

2011-02-23 09:57:23 +00:00
# oxdata gunicorn daemon
#
description "oxdata daemon"
start on runlevel [2345]
stop on runlevel [!2345]
2011-07-30 11:31:04 +00:00
kill timeout 5
2011-02-23 09:57:23 +00:00
respawn
2011-07-30 11:31:04 +00:00
env VENV=/srv/oxdata
env USER=oxdata
env HOME=/home/oxdata
2011-02-23 09:57:23 +00:00
2011-07-30 11:31:04 +00:00
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