diff options
author | Marcelo Góes <vanquirius@gentoo.org> | 2006-02-04 14:57:30 +0000 |
---|---|---|
committer | Marcelo Góes <vanquirius@gentoo.org> | 2006-02-04 14:57:30 +0000 |
commit | c014be5af68897455eb2dc9ca3098e4784199771 (patch) | |
tree | b4973785d84db2e5e97fbce55b961cd51b5c6309 /net-analyzer/nessus-core/files | |
parent | Version bump. Masked for now, there has been a code cleanup. (diff) | |
download | gentoo-2-c014be5af68897455eb2dc9ca3098e4784199771.tar.gz gentoo-2-c014be5af68897455eb2dc9ca3098e4784199771.tar.bz2 gentoo-2-c014be5af68897455eb2dc9ca3098e4784199771.zip |
Add --quiet to initscript for bug 117728.
(Portage version: 2.0.54)
Diffstat (limited to 'net-analyzer/nessus-core/files')
-rw-r--r-- | net-analyzer/nessus-core/files/nessusd-r8 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net-analyzer/nessus-core/files/nessusd-r8 b/net-analyzer/nessus-core/files/nessusd-r8 new file mode 100644 index 000000000000..63cb61db710b --- /dev/null +++ b/net-analyzer/nessus-core/files/nessusd-r8 @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-core/files/nessusd-r8,v 1.1 2006/02/04 14:57:30 vanquirius Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting nessusd" + start-stop-daemon --start --quiet --exec /usr/sbin/nessusd -- -D --quiet + eend $? +} + +stop() { + ebegin "Stop nessusd" + start-stop-daemon --stop --quiet --exec /usr/sbin/nessusd + einfo "Waiting for the environment to be sane" + while [ -n "$RUNNING" ] ; do + sleep 1 + RUNNING=$(ps aux | grep -m 1 nessusd: | grep -v grep) + done + sleep 3 + eend $? +} |