diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-28 10:11:49 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-28 10:11:49 -0300 |
commit | c032b26d1935f3239fd56bc0cc23fadc35a6c138 (patch) | |
tree | 155359aac500dc69ed06e864fbcf5aedc7e9e951 /pcr/postsrsd/postsrsd.service | |
parent | 6740bfa28d86a8ea5d2f051c0c215156c3914e6e (diff) |
postsrsd
Diffstat (limited to 'pcr/postsrsd/postsrsd.service')
-rw-r--r-- | pcr/postsrsd/postsrsd.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pcr/postsrsd/postsrsd.service b/pcr/postsrsd/postsrsd.service new file mode 100644 index 000000000..e72f97045 --- /dev/null +++ b/pcr/postsrsd/postsrsd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Postfix Sender Rewriting Scheme daemon + +[Service] +Type=forking +RuntimeDirectory=postsrsd +PIDFile=/run/postsrsd/postsrsd.pid +Environment=SRS_DOMAIN=localhost.localdomain SRS_FORWARD_PORT=10001 SRS_REVERSE_PORT=10002 SRS_SECRET=/etc/postsrsd/postsrsd.secret \ + SRS_EXCLUDE_DOMAINS= RUN_AS=postsrsd CHROOT=/run/postsrsd +EnvironmentFile=/etc/postsrsd/postsrsd.conf +ExecStart=/usr/bin/postsrsd -D -4 -f${SRS_FORWARD_PORT} -r${SRS_REVERSE_PORT} -d${SRS_DOMAIN} -s${SRS_SECRET} -u${RUN_AS} \ + -c${CHROOT} -X${SRS_EXCLUDE_DOMAINS} -p/run/postsrsd/postsrsd.pid + +[Install] +WantedBy=multi-user.target |