summaryrefslogtreecommitdiff
path: root/net-analyzer/gvm/files/gvm.init
blob: 22a736c403b355dabc7bd49708b99b122da15642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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="${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/
}