Hide default cron job, hcoop changes to webalizer cron job
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 8 Apr 2014 07:31:03 +0000 (03:31 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 8 Apr 2014 07:31:03 +0000 (03:31 -0400)
debian/hcoop-webalizer-config.hide [new file with mode: 0644]
debian/hcoop-webalizer.cron.daily

diff --git a/debian/hcoop-webalizer-config.hide b/debian/hcoop-webalizer-config.hide
new file mode 100644 (file)
index 0000000..4c2fa2d
--- /dev/null
@@ -0,0 +1 @@
+/etc/cron.daily/webalizer.hcoop
\ No newline at end of file
index 5256e13..14987c4 100644 (file)
@@ -5,13 +5,18 @@
 # and now, all rewrited by Jose Carlos Medeiros <jose@psabs.com.br> 
 
 # This script just run webalizer against all .conf files in /etc/webalizer
+# Modified for use at HCoop with config and output stored in AFS
 
 WEBALIZER=/usr/bin/webalizer
-WEBALIZER_CONFDIR=/etc/webalizer
+WEBALIZER_CONFDIR=/afs/hcoop.net/common/etc/domtool/webalizer/config
 
 [ -x ${WEBALIZER} ] || exit 0;
 [ -d ${WEBALIZER_CONFDIR} ] || exit 0;
 
+WEBALIZER="/usr/bin/k5start -U -K 300 -t -f /etc/keytabs/service/webalizer ${WEBALIZER}"
+
+#${WEBALIZER} -c /etc/webalizer/main.conf -Q || continue
+
 for i in ${WEBALIZER_CONFDIR}/*.conf; do
   # exists ?
   [ -f $i ] || continue;