summaryrefslogtreecommitdiff
path: root/network/greenbone-security-assistant/rc.gsad
diff options
context:
space:
mode:
Diffstat (limited to 'network/greenbone-security-assistant/rc.gsad')
-rw-r--r--network/greenbone-security-assistant/rc.gsad32
1 files changed, 32 insertions, 0 deletions
diff --git a/network/greenbone-security-assistant/rc.gsad b/network/greenbone-security-assistant/rc.gsad
new file mode 100644
index 0000000000..20efe90b4b
--- /dev/null
+++ b/network/greenbone-security-assistant/rc.gsad
@@ -0,0 +1,32 @@
+#!/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