mirror of
https://github.com/fergalmoran/mailcow-dockerized.git
synced 2025-12-22 09:27:30 +00:00
Fix trap for postfix for proper sigterm handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user