gvasalt/states/gnuviechadmin/celery-worker.service

13 lines
364 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description={{ description }}
[Service]
EnvironmentFile=-/etc/default/{{ appname }}
ExecStart={{ checkout }}/.venv/bin/celery --app="{{ celery_module }}" worker --queues="{{ amqpname }}" --task-events --concurrency=1 --loglevel=INFO
Restart=on-failure
User={{ app_user }}
WorkingDirectory={{ checkout }}/{{ appname }}
[Install]
WantedBy=multi-user.target