summaryrefslogtreecommitdiffstats
path: root/network/greenbone-security-assistant/rc.gsad
diff options
context:
space:
mode:
author Marco Bonetti <sid77@slackware.it>2010-04-12 19:35:52 -0400
committer David Somero <xgizzmo@slackbuilds.org>2010-05-15 10:37:53 +0200
commit5ecb604087273dc1238572705d7995cd2c1b48dd (patch)
treeca4407aad1385a52b93cbf66a17f38de2c2f657f /network/greenbone-security-assistant/rc.gsad
parenta7c3b4f62b40315e6eca57e772f21181d956285f (diff)
downloadslackbuilds-5ecb604087273dc1238572705d7995cd2c1b48dd.tar.gz
slackbuilds-5ecb604087273dc1238572705d7995cd2c1b48dd.tar.xz
network/greenbone-security-assistant: Added (OpenVAS web interface)
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