From a7c3b4f62b40315e6eca57e772f21181d956285f Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Mon, 12 Apr 2010 19:35:11 -0400 Subject: network/openvas-administrator: Added (OpenVAS Settings Management) --- network/openvas-administrator/rc.openvasad | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 network/openvas-administrator/rc.openvasad (limited to 'network/openvas-administrator/rc.openvasad') 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 -- cgit v1.2.3