slackbuilds_ponce/network/greenbone-security-assistant/rc.gsad
Marco Bonetti 81ba726e11 network/greenbone-security-assistant: Updated for version 1.0.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-02-05 11:39:33 -06:00

32 lines
445 B
Bash

#!/bin/sh
# Get OpenVAS options
. /etc/rc.d/rc.openvas.conf
PIDFILE="/var/run/gsad.pid"
start() {
echo "Starting Greenbone Security Assistant..."
gsad --mport=${MAN_PORT} ${GSA_OPTIONS}
}
stop() {
echo "Stopping Greenbone Security Assistant..."
kill $(cat $PIDFILE)
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
esac