From bd867779f07535bbd091cf2f9b86da2e4601f855 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 15 Feb 2017 19:02:34 +0100 Subject: [PATCH] reload worker, no longer gets rotated by logrotate --- etc/systemd/system/pandora-encoding.service | 3 ++- etc/systemd/system/pandora-tasks.service | 3 ++- vm/pandora_install.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/etc/systemd/system/pandora-encoding.service b/etc/systemd/system/pandora-encoding.service index 37ce9051..f56f0eb2 100644 --- a/etc/systemd/system/pandora-encoding.service +++ b/etc/systemd/system/pandora-encoding.service @@ -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 diff --git a/etc/systemd/system/pandora-tasks.service b/etc/systemd/system/pandora-tasks.service index 179d95d7..5972e8b3 100644 --- a/etc/systemd/system/pandora-tasks.service +++ b/etc/systemd/system/pandora-tasks.service @@ -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 diff --git a/vm/pandora_install.sh b/vm/pandora_install.sh index 6949e248..31f9119f 100755 --- a/vm/pandora_install.sh +++ b/vm/pandora_install.sh @@ -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"