blob: d8ef2f27c214f75feac8a9f2c9e165439d76978a (
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
|
#!/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
}
|