From 292d1c46c0d901850c608b51472783afcb2eb801 Mon Sep 17 00:00:00 2001 From: Juan Luis Baptiste Date: Wed, 23 Oct 2019 17:20:20 -0500 Subject: [PATCH] In case of mounting /var/spool/postfix, delete master.pid first --- run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 247971e..d2f92a7 100644 --- a/run.sh +++ b/run.sh @@ -64,6 +64,10 @@ if [ ! -z "${SMTP_NETWORKS}" ]; then fi add_config_value "mynetworks" "${nets}" - #Start services + +# If host mounting /var/spool/postfix, we need to delete old pid file before +# starting services +rm -f /var/spool/postfix/pid/master.pid + supervisord