mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
33 lines
444 B
Text
33 lines
444 B
Text
|
#!/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
|