summaryrefslogtreecommitdiff
path: root/network/openvas-scanner/rc.openvassd
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-13 01:00:11 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 01:00:11 +0200
commitc910da288b3bfcfd11f263df747e89c2e3b6348e (patch)
tree943a3283e26b5c792724df6f243fb67009936bf1 /network/openvas-scanner/rc.openvassd
parent34ff4e11c654e7ea05dfd326228d424c0259537c (diff)
downloadslackbuilds-c910da288b3bfcfd11f263df747e89c2e3b6348e.tar.gz
network/openvas-scanner: Added to 13.0 repository
Diffstat (limited to 'network/openvas-scanner/rc.openvassd')
-rw-r--r--network/openvas-scanner/rc.openvassd29
1 files changed, 29 insertions, 0 deletions
diff --git a/network/openvas-scanner/rc.openvassd b/network/openvas-scanner/rc.openvassd
new file mode 100644
index 0000000000..4ae0183cce
--- /dev/null
+++ b/network/openvas-scanner/rc.openvassd
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+PIDFILE="/var/run/openvassd.pid"
+
+start() {
+ echo "Starting OpenVAS scanner..."
+ openvassd
+}
+
+stop() {
+ echo "Stopping OpenVAS scanner..."
+ kill `cat $PIDFILE`
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ sleep 1
+ start
+ ;;
+ *)
+ echo "Usage: $0 (start|stop|restart)"
+esac