Fix trap for postfix for proper sigterm handling

This commit is contained in:
andryyy
2016-12-13 07:58:53 +01:00
parent f544739137
commit 977a5b4d47
3 changed files with 3 additions and 7 deletions

View File

@@ -1,12 +1,7 @@
#!/bin/bash
# http://superuser.com/questions/168412/using-supervisord-to-control-the-postfix-mta
trap "postfix stop" EXIT
trap "postfix stop" SIGINT
trap "postfix stop" SIGTERM
trap "postfix reload" SIGHUP
# start postfix
postfix -c /opt/postfix/conf start
sleep infinity