postfix.sh 251 B

123456789101112
  1. #!/bin/bash
  2. # http://superuser.com/questions/168412/using-supervisord-to-control-the-postfix-mta
  3. trap "postfix stop" SIGINT
  4. trap "postfix stop" SIGTERM
  5. trap "postfix reload" SIGHUP
  6. # start postfix
  7. postfix -c /opt/postfix/conf start
  8. sleep infinity