View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/net-analyzer/ntop/files/ntop-init (-1 / +10 lines)
 Lines 4-10    Link Here 
        need net
        need net
}
}
checkconfig() {
        if [ ! -e /var/lib/ntop/ntop_pw.db ]; then
		eerror "You need to set a password first by running"
		eerror "ntop --set-admin-password"
		return 1
	fi
}
start() {
start() {
	checkconfig || return 1
	ebegin "Starting ntop"
	ebegin "Starting ntop"
	start-stop-daemon --start --quiet --exec /usr/bin/ntop -- -d -L ${NTOP_OPTS} >/dev/null
	start-stop-daemon --start --quiet --exec /usr/bin/ntop -- -d -L ${NTOP_OPTS} >/dev/null
	eend $?
	eend $?
 Lines 12-17    Link Here 
stop() {
stop() {
	ebegin "Stopping ntop"
	ebegin "Stopping ntop"
	start-stop-daemon --stop --quiet --retry 5 --exec /usr/bin/ntop
	start-stop-daemon --stop --quiet --retry 5 --pidfile /var/lib/ntop/ntop.pid
	eend $?
	eend $?
}
}