slackbuilds_ponce/network/openvas-administrator/rc.openvasad

33 lines
439 B
Text
Raw Normal View History

#!/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