[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Mon, 20 Sep 2004 15:57:03 -0600


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv9067/src

Modified Files:
	logcheck 
Log Message:

always comment the function above it's beginning.


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/09/19 09:18:09	1.81
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/09/20 21:57:03	1.82
@@ -22,7 +22,7 @@
 # along with Logcheck; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $Id: logcheck,v 1.81 2004/09/19 09:18:09 maks-guest Exp $
+# $Id: logcheck,v 1.82 2004/09/20 21:57:03 maks-guest Exp $
 
 if [ $UID == 0 ]; then
     echo "logcheck should not be run as root. Use su to invoke logcheck:"
@@ -81,8 +81,8 @@
 SYSLOGSUMMARY=0
 LOCKFILE="/var/lock/logcheck"
 
+# Carry out the clean up tasks
 cleanup() {
-    # Carry out the clean up tasks
 
     if [ -n "$LOCK" ]; then
         debug "cleanup: Killing lockfile-touch - $LOCK"
@@ -105,15 +105,15 @@
     fi
 }
 
+# Log debug output to standard error
 debug() {
-    # Log debug output to standard error
     if [ $LOGCHECKDEBUG -eq 1 ]; then
 	echo "D: [$(date +%s)] $1" >&2 
     fi
 }
 
+# Mail error message to sysadmin
 error() {
-    # Mail error message to sysadmin
     message=$1
 
     if [ "$2" = "noclean" ]; then
@@ -170,9 +170,9 @@
 }
 
 
+# Clean a directory (or single file) to a cleaned tmp version
+# takes two args: directory and cleaned file
 cleanrules() {
-    # Clean a directory (or single file) to a cleaned tmp version
-    # takes two args: directory and cleaned file
     dir=$1
     cleaned=$2

[31 lines skipped]