add pid to upstart

This commit is contained in:
j 2011-10-19 16:27:38 +02:00
parent e040e1bc5d
commit 2543fa4f78
4 changed files with 7 additions and 0 deletions

View file

@ -14,10 +14,12 @@ env HOME=/home/pandora
script
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
cd $VENV/pandora
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
-Q encoding \
-n pandora-encoding \
-p /var/run/pandora/pandora-encoding.pid \
-f /var/log/pandora/pandora-encoding.log \
-l INFO
end script

View file

@ -14,10 +14,12 @@ env HOME=/home/pandora
script
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
cd $VENV/pandora
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
-Q default \
-n pandora-default \
-p /var/run/pandora/pandora-tasks.pid \
-f /var/log/pandora/pandora-tasks.log \
-l INFO
end script

View file

@ -14,10 +14,12 @@ env HOME=/home/pandora
script
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
cd $VENV/pandora
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
--bind 127.0.0.1:2620 \
--timeout 90 \
-p /var/run/pandora/pandora.pid \
--log-level info --log-file /var/log/pandora/pandora.log \
--workers 5 \
$VENV/pandora/settings.py

1
reload.sh Executable file
View file

@ -0,0 +1 @@
kill -HUP `cat /var/run/oxdata/oxdata.pid`