summaryrefslogtreecommitdiffstats
path: root/network/greenbone-security-assistant/rc.gsad
diff options
context:
space:
mode:
author Kent Fritz2015-02-22 01:20:19 +0100
committer Willy Sudiarto Raharjo2015-02-22 01:20:19 +0100
commit2024922574c76aeb95ea2ebbe5a22f4bb8902640 (patch)
tree0ca62ea812c4284664f422ff5fdaf60f1cd216c6 /network/greenbone-security-assistant/rc.gsad
parentf13024435d0903a4b35cd1ca6608f70c27b2d315 (diff)
downloadslackbuilds-2024922574c76aeb95ea2ebbe5a22f4bb8902640.tar.gz
network/greenbone-security-assistant: Added (UI for OpenVAS).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/greenbone-security-assistant/rc.gsad')
-rw-r--r--network/greenbone-security-assistant/rc.gsad47
1 files changed, 47 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..9ed7614a70
--- /dev/null
+++ b/network/greenbone-security-assistant/rc.gsad
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# /etc/rc.d/rc.gsad
+#
+# Start/stop/restart the Greenbone Security Assistant Daemon.
+#
+# To make Greenbone SA start automatically at boot, make this
+# file executable: chmod 755 /etc/rc.d/rc.gsad
+# and add to rc.local:
+# if [ -x /etc/rc.d/rc.gsad ]; then
+# . /etc/rc.d/rc.gsad start
+# fi
+#
+
+GSAD_PATH=/usr/sbin
+GSAD_BIN=gsad
+GSAD_OPTIONS="-p 9392 --timeout=60 --gnutls-priorities=SECURE128:-VERS-SSL3.0"
+GSAD_CMD="$GSAD_PATH/$GSAD_BIN $GSAD_OPTIONS"
+
+gsad_start() {
+ echo Starting Greenbone Security Assistant: $GSAD_CMD
+ $GSAD_CMD
+}
+
+gsad_stop() {
+ echo "Stopping Greenbone Security Assistant"
+ /bin/killall $GSAD_BIN
+}
+
+gsad_restart() {
+ gsad_stop
+ gsad_start
+}
+
+case "$1" in
+'start')
+ gsad_start
+ ;;
+'stop')
+ gsad_stop
+ ;;
+'restart')
+ gsad_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac