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
|
script
|
||||||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
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
|
cd $VENV/pandora
|
||||||
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
||||||
-Q encoding \
|
-Q encoding \
|
||||||
-n pandora-encoding \
|
-n pandora-encoding \
|
||||||
|
-p /var/run/pandora/pandora-encoding.pid \
|
||||||
-f /var/log/pandora/pandora-encoding.log \
|
-f /var/log/pandora/pandora-encoding.log \
|
||||||
-l INFO
|
-l INFO
|
||||||
end script
|
end script
|
||||||
|
|
|
@ -14,10 +14,12 @@ env HOME=/home/pandora
|
||||||
|
|
||||||
script
|
script
|
||||||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
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
|
cd $VENV/pandora
|
||||||
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
||||||
-Q default \
|
-Q default \
|
||||||
-n pandora-default \
|
-n pandora-default \
|
||||||
|
-p /var/run/pandora/pandora-tasks.pid \
|
||||||
-f /var/log/pandora/pandora-tasks.log \
|
-f /var/log/pandora/pandora-tasks.log \
|
||||||
-l INFO
|
-l INFO
|
||||||
end script
|
end script
|
||||||
|
|
|
@ -14,10 +14,12 @@ env HOME=/home/pandora
|
||||||
|
|
||||||
script
|
script
|
||||||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
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
|
cd $VENV/pandora
|
||||||
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
|
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
|
||||||
--bind 127.0.0.1:2620 \
|
--bind 127.0.0.1:2620 \
|
||||||
--timeout 90 \
|
--timeout 90 \
|
||||||
|
-p /var/run/pandora/pandora.pid \
|
||||||
--log-level info --log-file /var/log/pandora/pandora.log \
|
--log-level info --log-file /var/log/pandora/pandora.log \
|
||||||
--workers 5 \
|
--workers 5 \
|
||||||
$VENV/pandora/settings.py
|
$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