diff options
author | Kent Fritz <fritz.kent@gmail.com> | 2015-02-21 19:25:24 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-02-21 19:25:24 +0700 |
commit | 7b1c30e2f98e8744cb1eab774441d0f045a1cefe (patch) | |
tree | b003dc8ceca6ee4a2080dc5abcc90d247598e548 /network/openvas-manager/rc.openvasmd | |
parent | df0da089c375cf460e20991ffd0d88152ee06ebc (diff) | |
download | slackbuilds-7b1c30e2f98e8744cb1eab774441d0f045a1cefe.tar.gz |
network/openvas-manager: Added (Manager for OpenVAS).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/openvas-manager/rc.openvasmd')
-rw-r--r-- | network/openvas-manager/rc.openvasmd | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/network/openvas-manager/rc.openvasmd b/network/openvas-manager/rc.openvasmd new file mode 100644 index 0000000000..78595eea78 --- /dev/null +++ b/network/openvas-manager/rc.openvasmd @@ -0,0 +1,47 @@ +#!/bin/sh +# +# /etc/rc.d/rc.openvasmd +# +# Start/stop/restart the OpenVAS Manager Daemon. +# +# To make OpenVAS Manager start automatically at boot, make this +# file executable: chmod 755 /etc/rc.d/rc.openvasmd +# and add to rc.local: +# if [ -x /etc/rc.d/rc.openvasmd ]; then +# . /etc/rc.d/rc.openvasmd start +# fi +# + +OPENVASMD_PATH=/usr/sbin +OPENVASMD_BIN=openvasmd +OPENVASMD_OPTIONS="-a 127.0.0.1 --gnutls-priorities=SECURE128:-VERS-SSL3.0" +OPENVASMD_CMD="$OPENVASMD_PATH/$OPENVASMD_BIN $OPENVASMD_OPTIONS" + +openvasmd_start() { + echo Starting OpenVAS Manager: $OPENVASMD_CMD + $OPENVASMD_CMD +} + +openvasmd_stop() { + echo "Stopping OpenVAS Manager" + /bin/killall $OPENVASMD_BIN +} + +openvasmd_restart() { + openvasmd_stop + openvasmd_start +} + +case "$1" in +'start') + openvasmd_start + ;; +'stop') + openvasmd_stop + ;; +'restart') + openvasmd_restart + ;; +*) + echo "usage $0 start|stop|restart|reload" +esac |