You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/ospd-openvas/files/ospd-openvas-22.initd

25 lines
596 B

#!/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
}