Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17953/scripts/scripts
Modified Files:
Tag: rel-1-2-patches
ntop
Log Message:
added support for /etc/ntop.conf (Heiko / Herbert Augustiny)
Index: ntop
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/ntop,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- ntop 31 Dec 2004 01:56:57 -0000 1.1.2.2
+++ ntop 12 Apr 2005 15:03:48 -0000 1.1.2.3
@@ -24,7 +24,7 @@
NAME="ntop"
CONFIGNAME=NTOP
DAEMON=/usr/bin/ntop
-PARAMETER="-d -L -P /etc/ntop -Q /var/lib/ntop -u ntop"
+PARAMETER="-d -L -P $NTOP_DB_PATH -Q /var/lib/ntop -u ntop @/etc/ntop.conf"
# source function library
source /etc/init.d/functions
@@ -47,7 +47,7 @@
case "$1" in
start)
- if [ ! -f /etc/ntop/ntop_pw.db ]; then
+ if [ ! -f $NTOP_DB_PATH/ntop_pw.db ]; then
$WARNING
echo -n "Warning :"
$NORMAL
|