mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-24 15:21:29 +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
|
||||
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
|
||||
postconf -c /opt/postfix/conf > /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user