You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

postsrsd.upstart.in 654B

1234567891011121314151617181920212223
  1. description "Postfix Sender Rewriting Scheme daemon"
  2. author "Timo Röhling <timo.roehling@gmx.de>"
  3. start on (filesystem and net-device-up)
  4. stop on runlevel [!2345]
  5. respawn
  6. env DEFAULTFILE=/etc/default/@PROJECT_NAME@
  7. script
  8. SRS_DOMAIN=`postconf -h mydomain || true`
  9. SRS_FORWARD_PORT=10001
  10. SRS_REVERSE_PORT=10002
  11. SRS_SECRET=/etc/@PROJECT_NAME@.secret
  12. SRS_EXCLUDE_DOMAINS=
  13. RUN_AS=nobody
  14. CHROOT=@CHROOT_DIR@
  15. if [ -r "$DEFAULTFILE" ]; then
  16. . "$DEFAULTFILE"
  17. fi
  18. exec @CMAKE_INSTALL_PREFIX@/sbin/@POSTSRSD@ -4 -f"$SRS_FORWARD_PORT" -r"$SRS_REVERSE_PORT" -d"$SRS_DOMAIN" -s"$SRS_SECRET" -u"$RUN_AS" -c"$CHROOT" -X"$SRS_EXCLUDE_DOMAINS"
  19. end script