SOURCES: logwatch.cron - moved to logwatch-cron.sh, add crontab contents here

glen glen at pld-linux.org
Tue Oct 7 10:31:59 CEST 2008


Author: glen                         Date: Tue Oct  7 08:31:59 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- moved to logwatch-cron.sh, add crontab contents here

---- Files affected:
SOURCES:
   logwatch.cron (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/logwatch.cron
diff -u SOURCES/logwatch.cron:1.6 SOURCES/logwatch.cron:1.7
--- SOURCES/logwatch.cron:1.6	Sun Nov 20 15:55:40 2005
+++ SOURCES/logwatch.cron	Tue Oct  7 10:31:53 2008
@@ -1,19 +1,5 @@
-#!/bin/sh
-#########
-#---{ Initial values: }---#
-SERVICE_RUN_NICE_LEVEL="0"
-OUTPUT="unformated"
-DATE=`/bin/date +%F`
+MAILTO=root
 
-#---{ Fetch configuration: }---#
-if [ -f /etc/sysconfig/logwatch ]; then
-	. /etc/sysconfig/logwatch
-fi
+04 1 * * *  root    /usr/sbin/logwatch-cron
 
-#---{ main part }---#
-if [ "${OUTPUT_LOCATION}" ]; then
-	umask 0022
-	nice -n ${SERVICE_RUN_NICE_LEVEL} /usr/sbin/logwatch --output=${OUTPUT} --save="${OUTPUT_LOCATION}/${DATE}.html"
-else
-	nice -n ${SERVICE_RUN_NICE_LEVEL} /usr/sbin/logwatch --output=${OUTPUT}
-fi
+# vim:syn=crontab
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/logwatch.cron?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list