]> git.pld-linux.org Git - packages/ntop.git/blobdiff - ntop.init
- 4.0.1
[packages/ntop.git] / ntop.init
index e131a0ba1acca1f6620975dbd803250ae9408be5..073fcd040cf61335b8e6c8635919ad439b27825c 100644 (file)
--- a/ntop.init
+++ b/ntop.init
@@ -36,15 +36,15 @@ RETVAL=0
 case "$1" in
   start)
        # Check if ntop is initialized
-       if [ ! -f "$NTOP_DIR/addressQueue.db" ]; then
-               nls "ntop is not initialized. Try \"%s init\" before start." "$0"
+       if [ ! -f "$NTOP_DIR/ntop_pw.db" ]; then
+               nls "ntop is not initialized. Try '%s init' before start." /etc/rc.d/init.d/ntop
                exit 6
        fi
 
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/ntop ]; then
                msg_starting ntop
-               daemon ntop -d -P $NTOP_DIR @/etc/ntop.conf
+               daemon --redirdfs /usr/sbin/ntop @/etc/ntop.conf -d -P $NTOP_DIR
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntop
        else
This page took 0.249247 seconds and 4 git commands to generate.