[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Mon, 20 Sep 2004 16:31:49 -0600


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

Modified Files:
	logcheck 
Log Message:

add a quick hack for logcheck to invoke itself, if run as root.
works great here and simplifies invocation.
left undocumented for eventual takers.


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/09/20 22:15:46	1.84
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/09/20 22:31:48	1.85
@@ -22,11 +22,13 @@
 # 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.84 2004/09/20 22:15:46 maks-guest Exp $
+# $Id: logcheck,v 1.85 2004/09/20 22:31:48 maks-guest Exp $
 
 if [ $UID == 0 ]; then
     echo "logcheck should not be run as root. Use su to invoke logcheck:"
     echo "su -s /bin/bash -c \"/usr/sbin/logcheck [options]\" logcheck"
+    # you may want to uncomment that hack to do let do that logcheck by itself.
+    # su -s /bin/bash -c  "$0 $*" logcheck
     exit 1
 fi