diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-06-24 22:04:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-06-24 22:04:04 +0000 |
commit | 51850ce8ca048063253403ef02b805869f5ba58a (patch) | |
tree | 0e55577d93d83ad37680380597536587d7c310ed /net-analyzer/ntop/files | |
parent | arm/sh stable (diff) | |
download | gentoo-2-51850ce8ca048063253403ef02b805869f5ba58a.tar.gz gentoo-2-51850ce8ca048063253403ef02b805869f5ba58a.tar.bz2 gentoo-2-51850ce8ca048063253403ef02b805869f5ba58a.zip |
arm/s390/sh stable
(Portage version: 2.1.3_rc5)
Diffstat (limited to 'net-analyzer/ntop/files')
-rw-r--r-- | net-analyzer/ntop/files/ntop-init-2 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net-analyzer/ntop/files/ntop-init-2 b/net-analyzer/ntop/files/ntop-init-2 index 6de2b775d248..d2a66b1029dc 100644 --- a/net-analyzer/ntop/files/ntop-init-2 +++ b/net-analyzer/ntop/files/ntop-init-2 @@ -1,11 +1,13 @@ #!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 depend() { - need net + need net } checkconfig() { - if [ ! -e /var/lib/ntop/ntop_pw.db ]; then + 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 @@ -15,12 +17,12 @@ checkconfig() { start() { checkconfig || return 1 ebegin "Starting ntop" - start-stop-daemon --start --quiet --exec /usr/bin/ntop -- -d -L ${NTOP_OPTS} >/dev/null + start-stop-daemon --start --exec /usr/bin/ntop -- -d -L ${NTOP_OPTS} eend $? } stop() { ebegin "Stopping ntop" - start-stop-daemon --stop --quiet --retry 5 --pidfile /var/lib/ntop/ntop.pid + start-stop-daemon --stop --retry 5 --pidfile /var/lib/ntop/ntop.pid eend $? } |