[clamav/f15] fixed systemd scripts and their installation
ensc
ensc at fedoraproject.org
Thu Jul 28 18:21:13 UTC 2011
commit 32d0ba22a60bd07848b8c32efa2a8e03bc1c5cae
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Thu Jul 28 20:20:13 2011 +0200
fixed systemd scripts and their installation
clamav.spec | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index 2f5bfad..06167a1 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -594,6 +594,17 @@ test "$1" = 0 || %_initrddir/clamd.scan condrestart >/dev/null || :
test "$1" != "0" || /sbin/initctl -q stop clamd.scan || :
+%post scanner-systemd
+test "$1" != "1" || /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+
+%preun scanner-systemd
+test "$1" != "0" || /bin/systemctl --no-reload disable clamd.scan.service >/dev/null 2>&1 || :
+test "$1" != "0" || /bin/systemctl stop clamd.scan.service >/dev/null 2>&1 || :
+
+%postun scanner-systemd
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+test "$1" = "0" || /bin/systemctl try-restart clamd.scan.service >/dev/null 2>&1 || :
+
%post update
test -e %freshclamlog || {
@@ -643,6 +654,18 @@ test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
+%post milter-systemd
+test "$1" != "1" || /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+
+%preun milter-systemd
+test "$1" != "0" || /bin/systemctl --no-reload disable clamav-milter.service >/dev/null 2>&1 || :
+test "$1" != "0" || /bin/systemctl stop clamav-milter.service >/dev/null 2>&1 || :
+
+%postun milter-systemd
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+test "$1" = "0" || /bin/systemctl try-restart clamav-milter.service >/dev/null 2>&1 || :
+
+
%post lib -p /sbin/ldconfig
%postun lib -p /sbin/ldconfig
@@ -804,6 +827,7 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
* Tue Jul 26 2011 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.97.2-1500
- updated to 0.97.2
- CVE-2011-2721 Off-by-one error by scanning message hashes (#725694)
+- fixed systemd scripts and their installation
* Thu Jun 9 2011 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.97.1-1500
- updated to 0.97.1
More information about the scm-commits
mailing list