Hello On Sun, Jun 05, 2005 at 12:12:17PM +0200, Jaap Keuter wrote: > 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
Thanks for the patch. It will be applied as soon as sarge has been released. It should be any day now. Regards, // Ola > > --- /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) > > > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | +46 (0)54-10 14 30 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]