forked from 0x2620/pandora
reload worker, no longer gets rotated by logrotate
This commit is contained in:
parent
2b0f2d7b99
commit
bd867779f0
3 changed files with 5 additions and 3 deletions
|
@ -10,9 +10,10 @@ Group=pandora
|
|||
PIDFile=/run/pandora/encoding.pid
|
||||
WorkingDirectory=/srv/pandora/pandora
|
||||
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
|
||||
celeryd \
|
||||
celery worker \
|
||||
-Q encoding -n pandora-encoding \
|
||||
--pidfile /run/pandora/encoding.pid \
|
||||
--maxtasksperchild 500 \
|
||||
-l INFO
|
||||
ExecReload=/bin/kill -TERM $MAINPID
|
||||
|
||||
|
|
|
@ -10,9 +10,10 @@ Group=pandora
|
|||
PIDFile=/run/pandora/tasks.pid
|
||||
WorkingDirectory=/srv/pandora/pandora
|
||||
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
|
||||
celeryd \
|
||||
celery worker \
|
||||
-Q default,celery -n pandora-default \
|
||||
--pidfile /run/pandora/tasks.pid \
|
||||
--maxtasksperchild 1000 \
|
||||
-l INFO
|
||||
ExecReload=/bin/kill -TERM $MAINPID
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ fi
|
|||
/srv/pandora/ctl start
|
||||
|
||||
#logrotate
|
||||
cp "/srv/pandora/etc/logrotate.d/pandora" "/etc/logrotate.d/pandora"
|
||||
#cp "/srv/pandora/etc/logrotate.d/pandora" "/etc/logrotate.d/pandora"
|
||||
|
||||
#nginx
|
||||
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default"
|
||||
|
|
Loading…
Reference in a new issue