pandora/etc/systemd/system/pandora-encoding.service

24 lines
575 B
SYSTEMD
Raw Normal View History

[Unit]
Description=pandora encoding daemon
After=postgresql.service rabbitmq-server.service
[Service]
Type=simple
Restart=always
User=pandora
Group=pandora
EnvironmentFile=/srv/pandora/pandora/encoding.conf
PIDFile=/run/pandora/encoding.pid
2019-07-16 11:27:35 +00:00
WorkingDirectory=/srv/pandora/pandora
2019-07-16 11:22:22 +00:00
ExecStart=/srv/pandora/bin/celery \
2019-07-16 11:27:35 +00:00
-A app worker \
-Q encoding -n pandora-encoding \
--pidfile /run/pandora/encoding.pid \
-c $CONCURRENCY \
--maxtasksperchild $MAX_TASKS_PER_CHILD \
-l $LOGLEVEL
ExecReload=/bin/kill -TERM $MAINPID
[Install]
WantedBy=multi-user.target