diff options
Diffstat (limited to 'net-analyzer/nessus-bin/files')
-rw-r--r-- | net-analyzer/nessus-bin/files/90nessus-bin | 1 | ||||
-rw-r--r-- | net-analyzer/nessus-bin/files/nessusd-initd | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/net-analyzer/nessus-bin/files/90nessus-bin b/net-analyzer/nessus-bin/files/90nessus-bin new file mode 100644 index 000000000000..598d86b3cd70 --- /dev/null +++ b/net-analyzer/nessus-bin/files/90nessus-bin @@ -0,0 +1 @@ +LDPATH="/opt/nessus/lib" diff --git a/net-analyzer/nessus-bin/files/nessusd-initd b/net-analyzer/nessus-bin/files/nessusd-initd new file mode 100644 index 000000000000..fb95cb2b2d8e --- /dev/null +++ b/net-analyzer/nessus-bin/files/nessusd-initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting nessus-service" + start-stop-daemon --start --quiet --exec /opt/nessus/sbin/nessus-service -- -D --quiet + eend $? +} + +stop() { + ebegin "Stopping nessus-service" + start-stop-daemon --stop --quiet --exec /opt/nessus/sbin/nessus-service + 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 $? +} |