Fix systemd start script

This commit is contained in:
Darold Gilles 2015-11-26 22:33:58 +01:00
parent 2168cee968
commit 1b7d8cea3b

View file

@ -1,13 +1,28 @@
# Copy the file as "/etc/systemd/system/sendmailanalyzer.service"
# To run sendmailanalyzer, use:
# systemctl start sendmailanalyzer.service
# to enable automatic start at boot time, use:
# systemctl enable sendmailanalyzer.service
# to stop sendmailanalyzer:
# systemctl stop sendmailanalyzer.service
#
# Feel free to modify the name of the PostgreSQL service following
# your installation.
#
# For more info about custom unit files, see
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
[Unit]
Description=SendmailAnalyzer a sendmail/postfix log analyzer
Description=SendmailAnalyzer a sendmail/postfix log analyzer
Requires=sendmail.service
After=sendmail.service
#Requires=postfix.service
#After=postfix.service
[Service]
Type=oneshot
Type=forking
PIDFile=/tmp/sendmailanalyzer.pid
ExecStart=/usr/local/sendmailanalyzer/sendmailanalyzer -f
ExecStop=/bin/kill -TERM sendmailanalyzer
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Alias=sendmailanalyzer.service