fuel-library/deployment/puppet/nailgun/templates/supervisord.conf.astute.erb
Matthew Mosesohn 36bebf494f Fix supervisord start with stale pidfile
supervisord has a stale pidfile sometimes
during Fuel container upgrades.
Also corrected whitespace issues.

Reduced wait time for processes to 5s so that
init script doesn't exceed its max timeout.

Change-Id: I6e5511f5fcce0205283594a290e72084b20e6aa7
Closes-Bug: #1361756
2014-08-28 14:14:13 +04:00

42 lines
1008 B
Plaintext

[rpcinterface:supervisor]
; required for supervisorctl
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[unix_http_server]
file=/var/run/supervisor.sock
[supervisord]
logfile=/var/log/supervisor/supervisord.log
loglevel=debug
pidfile=/var/run/supervisord.pid
childlogdir=/var/log/supervisor
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[program:astute]
command=/usr/bin/astuted -c /etc/astute/astuted.conf -l /var/log/astute/astute.log -w 7
process_name=%(program_name)s
numprocs=1
numprocs_start=0
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0,2
stopsignal=KILL
killasgroup=true
stopwaitsecs=5
redirect_stderr=true
stdout_logfile=/var/log/astute/app.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=0
stdout_events_enabled=false
stderr_logfile=/var/log/astute/err.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
stderr_capture_maxbytes=0
stderr_events_enabled=false
serverurl=AUTO