27 lines
904 B
Django/Jinja
27 lines
904 B
Django/Jinja
[program:{{agent_dash_name}}]
|
|
; Concurrency set to 1 because there is no lock around calls to hobo_notify
|
|
command={{venv_bin}}/celery worker --hostname={{agent_dot_name}}.%%h --app=hobo.agent.worker --loglevel=INFO --concurrency=1
|
|
environment=HOBO_AGENT_SETTINGS_FILE="{{agent_settings}}"
|
|
process_name={{agent_dash_name}}
|
|
user={{user}}
|
|
numprocs=1
|
|
stdout_logfile=/var/log/{{agent_dash_name}}/stdout.log
|
|
stderr_logfile=/var/log/{{agent_dash_name}}/stderr.log
|
|
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=10
|
|
; Need to wait for currently executing tasks to finish at shutdown.
|
|
; Increase this if you have very long running tasks.
|
|
stopwaitsecs = 600
|
|
|
|
; When resorting to send SIGKILL to the program to terminate it
|
|
; send SIGKILL to its whole process group instead,
|
|
; taking care of its children as well.
|
|
killasgroup=true
|
|
|
|
; if rabbitmq is supervised, set its priority higher
|
|
; so it starts first
|
|
priority=998
|
|
|