From 32d0ba22a60bd07848b8c32efa2a8e03bc1c5cae Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Jul 28 2011 18:20:13 +0000 Subject: fixed systemd scripts and their installation --- 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 - 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 - 0.97.1-1500 - updated to 0.97.1