reload worker, no longer gets rotated by logrotate

This commit is contained in:
j 2017-02-15 19:02:34 +01:00
parent 2b0f2d7b99
commit bd867779f0
3 changed files with 5 additions and 3 deletions

View file

@ -10,9 +10,10 @@ Group=pandora
PIDFile=/run/pandora/encoding.pid PIDFile=/run/pandora/encoding.pid
WorkingDirectory=/srv/pandora/pandora WorkingDirectory=/srv/pandora/pandora
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \ ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
celeryd \ celery worker \
-Q encoding -n pandora-encoding \ -Q encoding -n pandora-encoding \
--pidfile /run/pandora/encoding.pid \ --pidfile /run/pandora/encoding.pid \
--maxtasksperchild 500 \
-l INFO -l INFO
ExecReload=/bin/kill -TERM $MAINPID ExecReload=/bin/kill -TERM $MAINPID

View file

@ -10,9 +10,10 @@ Group=pandora
PIDFile=/run/pandora/tasks.pid PIDFile=/run/pandora/tasks.pid
WorkingDirectory=/srv/pandora/pandora WorkingDirectory=/srv/pandora/pandora
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \ ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
celeryd \ celery worker \
-Q default,celery -n pandora-default \ -Q default,celery -n pandora-default \
--pidfile /run/pandora/tasks.pid \ --pidfile /run/pandora/tasks.pid \
--maxtasksperchild 1000 \
-l INFO -l INFO
ExecReload=/bin/kill -TERM $MAINPID ExecReload=/bin/kill -TERM $MAINPID

View file

@ -139,7 +139,7 @@ fi
/srv/pandora/ctl start /srv/pandora/ctl start
#logrotate #logrotate
cp "/srv/pandora/etc/logrotate.d/pandora" "/etc/logrotate.d/pandora" #cp "/srv/pandora/etc/logrotate.d/pandora" "/etc/logrotate.d/pandora"
#nginx #nginx
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default" cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default"