aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvas-scanner/openvassd.initd
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-18 12:26:10 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-18 12:26:10 +0000
commit5d3ff181e96e7b45ddb10568cc0d2db9d5a8c85f (patch)
tree06b254777296e3ab9f6a126541fd89341c89b8fe /testing/openvas-scanner/openvassd.initd
parent11bb90420d74b579256bd81c9b8c37208577339c (diff)
downloadaports-5d3ff181e96e7b45ddb10568cc0d2db9d5a8c85f.tar.bz2
aports-5d3ff181e96e7b45ddb10568cc0d2db9d5a8c85f.tar.xz
Revert "community/openvas-scanner: moved from testing"
Diffstat (limited to 'testing/openvas-scanner/openvassd.initd')
-rw-r--r--testing/openvas-scanner/openvassd.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/openvas-scanner/openvassd.initd b/testing/openvas-scanner/openvassd.initd
new file mode 100644
index 0000000000..4b4de5e515
--- /dev/null
+++ b/testing/openvas-scanner/openvassd.initd
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+name="OpenVAS Scanner"
+command="/usr/bin/openvassd"
+command_args="${SCANNER_LISTEN} ${SCANNER_PORT} ${SCANNER_SRCIP} ${SCANNER_EXTRA_ARGS}"
+pidfile="/run/openvassd.pid"
+extra_stopped_commands="create_cache"
+
+depend() {
+ after bootmisc
+ need localmount net
+}
+
+start_pre() {
+ checkpath --directory --mode 0775 --quiet /var/cache/openvas
+}
+
+create_cache() {
+ checkpath --directory --mode 0775 --quiet /var/cache/openvas
+ ebegin "Generating initial Cache"
+ /usr/bin/openvassd --foreground --only-cache
+ eend $?
+}