[Logcheck-commits] CVS logcheck/src

CVS User ttroxell logcheck-devel at lists.alioth.debian.org
Thu Sep 1 16:57:00 UTC 2005


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

Modified Files:
	logcheck 
Log Message:
add test for logcheck-progs


--- /cvsroot/logcheck/logcheck/src/logcheck	2005/09/01 16:38:47	1.126
+++ /cvsroot/logcheck/logcheck/src/logcheck	2005/09/01 16:57:00	1.127
@@ -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.126 2005/09/01 16:38:47 maks-guest Exp $
+# $Id: logcheck,v 1.127 2005/09/01 16:57:00 ttroxell Exp $
 
 if [ $UID == 0 ]; then
     echo "logcheck should not be run as root. Use su to invoke logcheck:"
@@ -33,6 +33,12 @@
     exit 1
 fi
 
+if [ ! -f /usr/bin/lockfile-create -o \
+     ! -f /usr/bin/lockfile-remove -o \
+     ! -f /usr/bin/lockfile-touch ]; then
+    echo "fatal: lockfile-progs is a prerequisite for logcheck, and was not found."
+fi
+
 # Set the umask
 umask 077
 



More information about the Logcheck-commits mailing list