diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-04-12 19:35:11 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-15 10:37:53 +0200 |
commit | a7c3b4f62b40315e6eca57e772f21181d956285f (patch) | |
tree | bbf216a260d8cf0bc4fdea3426be09e6b021f0bf /network/openvas-administrator/rc.openvasad | |
parent | e9a7006cde1ba891e7892d1ff12b25b2cadb8d29 (diff) | |
download | slackbuilds-a7c3b4f62b40315e6eca57e772f21181d956285f.tar.gz |
network/openvas-administrator: Added (OpenVAS Settings Management)
Diffstat (limited to 'network/openvas-administrator/rc.openvasad')
-rw-r--r-- | network/openvas-administrator/rc.openvasad | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/network/openvas-administrator/rc.openvasad b/network/openvas-administrator/rc.openvasad new file mode 100644 index 0000000000..78f167a47f --- /dev/null +++ b/network/openvas-administrator/rc.openvasad @@ -0,0 +1,32 @@ +#!/bin/sh + +# Get OpenVAS options +. /etc/rc.d/rc.openvas.conf + +PIDFILE="/var/run/openvasad.pid" + +start() { + echo "Starting OpenVAS administrator..." + openvasad --port=${ADM_PORT} ${ADM_OPTIONS} +} + +stop() { + echo "Stopping OpenVAS administrator..." + kill `cat $PIDFILE` +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop + sleep 1 + start + ;; + *) + echo "Usage: $0 (start|stop|restart)" +esac |