packages: DenyHosts/DenyHosts.cron - add note about daemon mode, skip cron ...

glen glen at pld-linux.org
Wed Mar 31 08:22:57 CEST 2010


Author: glen                         Date: Wed Mar 31 06:22:57 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add note about daemon mode, skip cron run if daemon lockfile is present

---- Files affected:
packages/DenyHosts:
   DenyHosts.cron (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/DenyHosts/DenyHosts.cron
diff -u packages/DenyHosts/DenyHosts.cron:1.1 packages/DenyHosts/DenyHosts.cron:1.2
--- packages/DenyHosts/DenyHosts.cron:1.1	Tue Feb 22 13:01:04 2005
+++ packages/DenyHosts/DenyHosts.cron	Wed Mar 31 08:22:52 2010
@@ -1 +1,7 @@
-*/10 * * * * root python /usr/bin/denyhosts.py -c /etc/DenyHosts.cfg
+# NOTE:
+# if you run service in daemon mode, you should really rm this cron
+# definition, they do not cope! (this file will not be reinstalled by rpm once
+# removed)
+
+MAILTO=root
+*/10 * * * * root test -f /var/lock/subsys/denyhosts && exec python /usr/bin/denyhosts.py -c /etc/DenyHosts.cfg
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/DenyHosts/DenyHosts.cron?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list