summaryrefslogtreecommitdiff
path: root/net-analyzer/gvm/files/gvm.init
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-03 10:05:34 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-03 10:05:34 +0100
commit0eb9883b5a8a53c253c98d1c77438c39c27c8c97 (patch)
tree47a89f252688f21fcacd066ac01ed1992a453d42 /net-analyzer/gvm/files/gvm.init
parentc6872c361190d4f1a559d23458f6cdffb154b0b0 (diff)
gentoo auto-resync : 03:07:2023 - 10:05:34
Diffstat (limited to 'net-analyzer/gvm/files/gvm.init')
-rw-r--r--net-analyzer/gvm/files/gvm.init25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-analyzer/gvm/files/gvm.init b/net-analyzer/gvm/files/gvm.init
new file mode 100644
index 000000000000..bfd184221622
--- /dev/null
+++ b/net-analyzer/gvm/files/gvm.init
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+: ${GVM_USER:=gvm}
+: ${GVM_GROUP:=$(id -ng ${GVM_USER})}
+: ${GVM_TIMEOUT:=30}
+
+name="Greenbone Vulnerability Manager"
+command="/bin/true"
+command_background="true"
+command_user="${GSAD_USER}:${GSAD_GROUP}"
+pidfile="/run/gvm/gvm.pid"
+retry="${GSAD_TIMEOUT}"
+
+depend() {
+ after bootmisc
+ need localmount net redis-openvas ospd-openvas gvmd gsad
+ want notus-scanner
+}
+
+start_pre() {
+ mkdir /run/gvm
+ chown -R gvm:gvm /run/gvm/
+}