2
# Copyright (c) 1995-2000 S.u.S.E. GmbH Fuerth, Germany.
4
# Author: Remo Behn <ray@suse.de>
10
# Required-Start: $network
11
# Required-Stop: $network
13
# Default-Stop: 0 1 2 6
14
# Description: Tool for monitoring the network usage.
20
# Determine the base and follow a runlevel link name.
22
link=${base#*[SK][0-9][0-9]}
24
# Force execution if not called by a runlevel directory.
25
test $link = $base && START_NTOPD=yes
26
test "$START_NTOPD" = yes || exit 0
28
# The echo return value for success (defined in /etc/rc.config).
32
echo -n "Starting service ntop"
33
## Start daemon with startproc(8). If this fails
34
## the echo return value is set appropriate.
36
startproc -q /usr/bin/ntop -i $NTOPD_IFACE -w $NTOPD_PORT -P /var/lib/ntop
41
echo -n "Shutting down service ntop"
42
## Stop daemon with killproc(8) and if this fails
43
## set echo the echo return value.
45
killproc -TERM /usr/bin/ntop
54
echo -n "Checking for service ntop: "
55
## Check status with checkproc(8), if process is running
56
## checkproc will return with exit status 0.
58
checkproc /usr/bin/ntop
62
echo "Usage: $0 {start|stop|restart|reload|status}"