[amavisd-new] Add ExecReload and Wants=postfix.service to systemd unit

Juan Orti jorti at fedoraproject.org
Wed Aug 20 13:10:00 UTC 2014


commit 20d69c4539ce726f49247eae723dca7cb9454012
Author: Juan Orti Alcaine <juan.orti at miceliux.com>
Date:   Wed Aug 20 15:09:46 2014 +0200

    Add ExecReload and Wants=postfix.service to systemd unit

 amavisd-new.spec |    5 ++++-
 amavisd.service  |    2 ++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/amavisd-new.spec b/amavisd-new.spec
index 1771fbb..44d996a 100644
--- a/amavisd-new.spec
+++ b/amavisd-new.spec
@@ -3,7 +3,7 @@
 Summary:        Email filter with virus scanner and spamassassin support
 Name:           amavisd-new
 Version:        2.9.1
-Release:        2%{?prerelease:.%{prerelease}}%{?dist}
+Release:        3%{?prerelease:.%{prerelease}}%{?dist}
 # LDAP schema is GFDL, some helpers are BSD, core is GPLv2+
 License:        GPLv2+ and BSD and GFDL
 Group:          Applications/System
@@ -235,6 +235,9 @@ systemctl start amavisd-clean-quarantine.timer >/dev/null 2>&1 || :
 %{_sbindir}/amavisd-snmp-subagent
 
 %changelog
+* Wed Aug 20 2014 Juan Orti Alcaine <jorti at fedoraproject.org> 2.9.1-3
+- Add ExecReload and Wants=postfix.service to systemd unit
+
 * Sun Aug 03 2014 Juan Orti Alcaine <jorti at fedoraproject.org> 2.9.1-2
 - Add patch to fix releasing mail from sql quarantine
 
diff --git a/amavisd.service b/amavisd.service
index fc3e928..b7d15bd 100644
--- a/amavisd.service
+++ b/amavisd.service
@@ -3,6 +3,7 @@ Description=Amavisd-new is an interface between MTA and content checkers.
 Documentation=http://www.ijs.si/software/amavisd/#doc
 After=network.target
 Wants=clamd at amavisd.service
+Wants=postfix.service
 
 [Service]
 Type=forking
@@ -10,6 +11,7 @@ User=amavis
 Group=amavis
 PIDFile=/var/run/amavisd/amavisd.pid
 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf
+ExecReload=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf reload
 Restart=on-failure
 PrivateTmp=true
 PrivateDevices=true


More information about the scm-commits mailing list