mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-21 05:41:31 +00:00
postfix: added master.pid removal and startsecs to supervisord (#6284)
This commit is contained in:
@@ -509,6 +509,11 @@ chgrp -R postdrop /var/spool/postfix/public
|
|||||||
chgrp -R postdrop /var/spool/postfix/maildrop
|
chgrp -R postdrop /var/spool/postfix/maildrop
|
||||||
postfix set-permissions
|
postfix set-permissions
|
||||||
|
|
||||||
|
# Checking if there is a leftover of a crashed postfix container before starting a new one
|
||||||
|
if [ -e /var/spool/postfix/pid/master.pid ]; then
|
||||||
|
rm -rf /var/spool/postfix/pid/master.pid
|
||||||
|
fi
|
||||||
|
|
||||||
# Check Postfix configuration
|
# Check Postfix configuration
|
||||||
postconf -c /opt/postfix/conf > /dev/null
|
postconf -c /opt/postfix/conf > /dev/null
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ stdout_logfile_maxbytes=0
|
|||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
startsecs=10
|
||||||
|
|
||||||
[eventlistener:processes]
|
[eventlistener:processes]
|
||||||
command=/usr/local/sbin/stop-supervisor.sh
|
command=/usr/local/sbin/stop-supervisor.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user