wok diff ntop/stuff/etc/init.d/ntop @ rev 10890

ntop: improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jul 05 15:39:47 2011 +0200 (2011-07-05)
parents ef7ffda1c22c
children ba5507fa22f8
line diff
     1.1 --- a/ntop/stuff/etc/init.d/ntop	Mon Jul 04 22:49:16 2011 +0200
     1.2 +++ b/ntop/stuff/etc/init.d/ntop	Tue Jul 05 15:39:47 2011 +0200
     1.3 @@ -13,10 +13,13 @@
     1.4  DAEMON=/usr/bin/ntop
     1.5  
     1.6  HTTP_PORT="3000"
     1.7 +NTOP_USER="ntop"
     1.8  
     1.9 -OPTIONS="-w $HTTP_PORT -d"
    1.10 +LOGFILE=/var/log/ntop/ntop.log
    1.11  PIDFILE=/var/run/ntop.pid
    1.12  
    1.13 +OPTIONS="-w $HTTP_PORT -L -u $NTOP_USER -d"
    1.14 +
    1.15  case "$1" in
    1.16    start)
    1.17      if [ -f $PIDFILE ] ; then
    1.18 @@ -28,7 +31,7 @@
    1.19  		ntop -A || exit
    1.20      fi
    1.21      echo -n "Starting $DESC: $NAME... "
    1.22 -    $DAEMON $OPTIONS
    1.23 +    $DAEMON $OPTIONS >> $LOGFILE
    1.24      status
    1.25      ;;
    1.26    stop)