gentoo-ebuilds/net-analyzer/gvm/files/gvm.init
Giuseppe Foti 83cac9a70c
net-analyzer/gvm: fix openrc init script
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33242
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2023-10-09 12:54:10 +02:00

25 lines
547 B
Text

#!/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="${GVM_USER}:${GVM_GROUP}"
pidfile="/run/gvm/gvm.pid"
retry="${GVM_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/
}