2014-10-10 14:16:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=pandora encoding daemon
|
2016-09-07 07:00:48 +00:00
|
|
|
After=postgresql.service rabbitmq-server.service
|
2014-10-10 14:16:54 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
User=pandora
|
|
|
|
Group=pandora
|
2021-11-15 11:42:32 +00:00
|
|
|
EnvironmentFile=/srv/pandora/pandora/encoding.conf
|
2014-10-10 14:16:54 +00:00
|
|
|
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 \
|
2014-10-10 14:16:54 +00:00
|
|
|
-Q encoding -n pandora-encoding \
|
|
|
|
--pidfile /run/pandora/encoding.pid \
|
2021-11-15 11:42:32 +00:00
|
|
|
-c $CONCURRENCY \
|
2023-07-27 13:35:53 +00:00
|
|
|
--max-tasks-per-child $MAX_TASKS_PER_CHILD \
|
2021-11-15 11:42:32 +00:00
|
|
|
-l $LOGLEVEL
|
2016-03-16 15:55:05 +00:00
|
|
|
ExecReload=/bin/kill -TERM $MAINPID
|
2014-10-10 14:16:54 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|