summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/ospd-openvas/files/ospd-openvas-22.initd')
-rw-r--r--net-analyzer/ospd-openvas/files/ospd-openvas-22.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-analyzer/ospd-openvas/files/ospd-openvas-22.initd b/net-analyzer/ospd-openvas/files/ospd-openvas-22.initd
new file mode 100644
index 000000000000..d8ef2f27c214
--- /dev/null
+++ b/net-analyzer/ospd-openvas/files/ospd-openvas-22.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+: ${GVM_USER:=gvm}
+: ${GVM_GROUP:=$(id -ng ${GVM_USER})}
+: ${OSPD_TIMEOUT:=30}
+
+name="remotely control an OpenVAS Scanner"
+command=/usr/bin/ospd-openvas
+command_user="${GVM_USER}:${GVM_GROUP}"
+command_args="${OSPD_OPENVAS_OPTIONS} \
+ --config /etc/gvm/ospd-openvas.conf"
+pidfile=/run/ospd/ospd-openvas.pid
+retry="${OSPD_TIMEOUT}"
+
+depend() {
+ after bootmisc redis-openvas
+ need localmount redis-openvas
+}
+
+start_pre() {
+ checkpath -d --owner ${GVM_USER} /var/run/ospd
+}