Commit fe1b4312 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Sleep for 3 seconds after sendmail start to allow for PID file to be written

parent 7752bf5a
......@@ -103,6 +103,7 @@ PIDFile=/var/spool/clientmqueue/sm-client.pid
EnvironmentFile=/etc/default/sendmail
ExecStartPre=/bin/rm -f /var/spool/mqueue/xf*
ExecStart=/usr/sbin/sendmail -L sm-msp-queue -Ac $$SENDMAIL_OPTS $$SENDMAIL_OPTARG
ExecStartPost=sleep 3
[Install]
WantedBy=multi-user.target
......@@ -122,6 +123,7 @@ Type=forking
PIDFile=/run/sendmail.pid
EnvironmentFile=/etc/default/sendmail
ExecStart=/usr/sbin/sendmail -bd $$SENDMAIL_OPTS $$SENDMAIL_OPTARG
ExecStartPost=sleep 3
[Install]
WantedBy=multi-user.target
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment