[Unit]
Description=Celery service
After=network.target
After=lokole.service
Before=celerybeat.service

[Service]
Type=simple
EnvironmentFile={{ lokole_run_directory }}/settings.env
ExecStart={{ lokole_venv }}/bin/celery --uid={{ lokole_uid }} --gid={{ lokole_uid }} --app=opwen_email_client.webapp.tasks worker --loglevel=info --concurrency=2
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill TERM $MAINPID

[Install]
WantedBy=multi-user.target
