mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-16 10:59:39 +02:00
800eebd117
[Postfix] Use events to kill supervisord when main proc dies [SOGo] Use events to kill supervisord when main proc dies
33 lines
675 B
Plaintext
33 lines
675 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
|
|
[program:syslog-ng]
|
|
command=/usr/sbin/syslog-ng --foreground --no-caps
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
autostart=true
|
|
priority=1
|
|
|
|
[program:cron]
|
|
command=/usr/sbin/cron -f
|
|
autorestart=true
|
|
priority=2
|
|
|
|
[program:bootstrap-sogo]
|
|
command=/bootstrap-sogo.sh
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=3
|
|
startretries=10
|
|
autorestart=true
|
|
stopwaitsecs=120
|
|
|
|
[eventlistener:processes]
|
|
command=/usr/local/sbin/stop-supervisor.sh
|
|
events=PROCESS_STATE_STOPPED, PROCESS_STATE_EXITED, PROCESS_STATE_FATAL
|