diff options
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 0000000000000..4ae0183ccea18 --- /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 |