mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
800eebd117
[Postfix] Use events to kill supervisord when main proc dies [SOGo] Use events to kill supervisord when main proc dies
25 lines
560 B
Plaintext
25 lines
560 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[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
|
|
|
|
[program:dovecot]
|
|
command=/usr/local/sbin/dovecot -F
|
|
autorestart=true
|
|
|
|
[program:cron]
|
|
command=/usr/sbin/cron -f
|
|
autorestart=true
|
|
|
|
[eventlistener:processes]
|
|
command=/usr/local/sbin/stop-supervisor.sh
|
|
events=PROCESS_STATE_STOPPED, PROCESS_STATE_EXITED, PROCESS_STATE_FATAL
|