update postfix run script
This commit is contained in:
parent
4b33a6e3f7
commit
c44515103c
@ -1,3 +1,17 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
exec /usr/lib/postfix/master -d
|
||||
trap "postfix stop" SIGINT
|
||||
trap "postfix stop" SIGTERM
|
||||
trap "postfix reload" SIGHUP
|
||||
|
||||
# start postfix
|
||||
postfix start
|
||||
|
||||
# lets give postfix some time to start
|
||||
sleep 3
|
||||
|
||||
# wait until postfix is dead (triggered by trap)
|
||||
while kill -0 "`cat /var/spool/postfix/pid/master.pid`"; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user