diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-05-13 01:00:11 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 01:00:11 +0200 |
commit | c910da288b3bfcfd11f263df747e89c2e3b6348e (patch) | |
tree | 943a3283e26b5c792724df6f243fb67009936bf1 /network/openvas-scanner/rc.openvassd | |
parent | 34ff4e11c654e7ea05dfd326228d424c0259537c (diff) |
network/openvas-scanner: Added to 13.0 repository
Diffstat (limited to 'network/openvas-scanner/rc.openvassd')
-rw-r--r-- | network/openvas-scanner/rc.openvassd | 29 |
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 000000000000..4ae0183ccea1 --- /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 |