Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Fixed the problem that the process file exists and caused rsyslogd to fail to start

aapanel.com4cbee1e6d93b
diff --git a/Dockerfiles/dovecot/supervisord.conf b/Dockerfiles/dovecot/supervisord.conf
index 1c377cc8..ce26e78a 100644
--- a/Dockerfiles/dovecot/supervisord.conf
+++ b/Dockerfiles/dovecot/supervisord.conf
@@ -6,7 +6,7 @@ pidfile=/var/run/supervisord.pid
user=root
[program:rsyslog]
-command=/usr/sbin/rsyslogd -n -i /run/rsyslogd.pid
+command=/bin/sh -c "rm -f /run/rsyslogd.pid && exec /usr/sbin/rsyslogd -n -i /run/rsyslogd.pid"
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
@@ -15,7 +15,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:dovecot]
-command=sh -c "rm -f /run/dovecot/master.pid && exec /usr/sbin/dovecot -F"
+command=/bin/sh -c "rm -f /run/dovecot/master.pid && exec /usr/sbin/dovecot -F"
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
diff --git a/Dockerfiles/postfix/supervisord.conf b/Dockerfiles/postfix/supervisord.conf
index 397553b5..1aa898e9 100644
--- a/Dockerfiles/postfix/supervisord.conf
+++ b/Dockerfiles/postfix/supervisord.conf
@@ -6,7 +6,7 @@ pidfile=/var/run/supervisord.pid
user=root
[program:rsyslog]
-command=/usr/sbin/rsyslogd -n -i /run/rsyslogd.pid
+command=/bin/sh -c "rm -f /run/rsyslogd.pid && exec /usr/sbin/rsyslogd -n -i /run/rsyslogd.pid"
autostart=true
autorestart=true
stdout_logfile=/dev/stdout