diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /net-analyzer/openvas-scanner/files/openvasd | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'net-analyzer/openvas-scanner/files/openvasd')
-rw-r--r-- | net-analyzer/openvas-scanner/files/openvasd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-analyzer/openvas-scanner/files/openvasd b/net-analyzer/openvas-scanner/files/openvasd new file mode 100644 index 0000000..0883487 --- /dev/null +++ b/net-analyzer/openvas-scanner/files/openvasd @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net +} + +start() { + ebegin "Starting openvassd" + start-stop-daemon --start --quiet -n openvassd --exec /usr/sbin/openvassd -- --quiet + eend $? +} + +stop() { + ebegin "Stop openvassd" + start-stop-daemon --stop --quiet -n openvassd + + einfo "Waiting for the environment to be sane" + RUNNING=$(ps aux | grep -m 1 openvassd: | grep -v grep) + while [ -n "$RUNNING" ] ; do + sleep 1 + RUNNING=$(ps aux | grep -m 1 openvassd: | grep -v grep) + done + eend $? +} |