forked from 0x2620/pandora
add pid to upstart
This commit is contained in:
parent
e040e1bc5d
commit
2543fa4f78
4 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
1
reload.sh
Executable file
|
@ -0,0 +1 @@
|
|||
kill -HUP `cat /var/run/oxdata/oxdata.pid`
|
Loading…
Reference in a new issue