13 lines
317 B
SYSTEMD
13 lines
317 B
SYSTEMD
|
[Unit]
|
||
|
Description={{ description }}
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=-/etc/default/{{ appname }}
|
||
|
ExecStart={{ virtualenv }}/bin/celery worker -A {{ celery_module }} -Q {{ amqpname }} --loglevel=INFO
|
||
|
Restart=on-failure
|
||
|
User={{ app_user }}
|
||
|
WorkingDirectory={{ checkout }}/{{ appname }}
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|