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 595B

12345678910111213141516171819202122
  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. RUN_AS=nobody
  13. CHROOT=@CHROOT_DIR@
  14. if [ -r "$DEFAULTFILE" ]; then
  15. . "$DEFAULTFILE"
  16. fi
  17. 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
  18. end script