mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 14:56:10 +08:00
3f6d1330bb
Postfix has an option to run in foreground. Use this feature to reduce the complexity of supervisord.conf.
36 lines
817 B
Plaintext
36 lines
817 B
Plaintext
[supervisord]
|
|
user = root
|
|
nodaemon = true
|
|
logfile = /dev/null
|
|
logfile_maxbytes= 0
|
|
|
|
[program:rsyslog]
|
|
command = rsyslogd -n
|
|
autostart = true
|
|
autorestart = true
|
|
startsecs = 2
|
|
stopwaitsecs = 2
|
|
stdout_logfile = /dev/stdout
|
|
stderr_logfile = /dev/stderr
|
|
stdout_logfile_maxbytes = 0
|
|
stderr_logfile_maxbytes = 0
|
|
|
|
[program:postfix]
|
|
command = /usr/sbin/postfix -c /etc/postfix start-fg
|
|
autostart = true
|
|
autorestart = false
|
|
directory = /etc/postfix
|
|
startsecs = 0
|
|
|
|
[program:opendkim]
|
|
command = /opendkim.sh
|
|
user = opendkim
|
|
autostart = true
|
|
autorestart = true
|
|
startsecs = 5
|
|
stopwaitsecs = 5
|
|
stdout_logfile = /dev/stdout
|
|
stderr_logfile = /dev/stderr
|
|
stdout_logfile_maxbytes = 0
|
|
stderr_logfile_maxbytes = 0
|