SOURCES: clamav-post-updatedb - notify daemon only if it's up
glen
glen at pld-linux.org
Wed Dec 27 12:39:34 CET 2006
Author: glen Date: Wed Dec 27 11:39:34 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- notify daemon only if it's up
---- Files affected:
SOURCES:
clamav-post-updatedb (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/clamav-post-updatedb
diff -u SOURCES/clamav-post-updatedb:1.3 SOURCES/clamav-post-updatedb:1.4
--- SOURCES/clamav-post-updatedb:1.3 Sat Sep 25 17:14:23 2004
+++ SOURCES/clamav-post-updatedb Wed Dec 27 12:39:29 2006
@@ -4,12 +4,14 @@
[ -z "$FETCH_AFTER_UPGRADE" ] && FETCH_AFTER_UPGRADE="no"
-if [ "$UPDATE_QUIET" = "yes" ]; then
- freshclamopt="--quiet"
-fi
-
if [ "$FETCH_AFTER_UPGRADE" = "yes" ]; then
+ if [ "$UPDATE_QUIET" = "yes" ]; then
+ freshclamopt="--quiet"
+ fi
+
+ notify=
+ [ -f /var/lock/subsys/clamd ] && notify="--daemon-notify"
+
umask 022
- /usr/bin/freshclam $freshclamopt -l /var/log/freshclam.log --daemon-notify || :
+ /usr/bin/freshclam $freshclamopt -l /var/log/freshclam.log $notify || :
fi
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/clamav-post-updatedb?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list