Package: ntop Version: 2:3.1-2 Tags: patch The ntop command script in /etc/init.d/ can be improved in several ways. 1. The trailing slash of LOGDIR has to be removed since this gives a warning in syslog 2. $LOGDIR is to be used in the declaration of the access.log path, both according to the FHS and logrotate script 3. add --w3c to get better HTML output 4. add -t 2 to make ntop output into syslog less noisy
--- /etc/init.d/ntop.orig 2005-01-23 20:41:28.000000000 +0100 +++ /etc/init.d/ntop.orig.fixed 2005-06-05 12:25:20.000000000 +0200 @@ -5,7 +5,7 @@ DESC="network top daemon" INIT="/etc/default/ntop" HOMEDIR="/var/lib/ntop" -LOGDIR="/var/log/ntop/" +LOGDIR="/var/log/ntop" test -f $DAEMON || exit 0 @@ -18,7 +18,7 @@ echo "Starting $DESC:" start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \ -d -L -u $USER -P $HOMEDIR --skip-version-check \ - -a /var/lib/ntop/access.log -i $INTERFACES \ + -a $LOGDIR/access.log -t 2 --w3c -i $INTERFACES \ -O $LOGDIR $GETOPT ;; stop) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]