gentoo-ebuilds/net-analyzer/gvmd/files/gvmd-22.init
Giuseppe Foti 5cd96ba01a
net-analyzer/gvmd: drop 23.6.2, revbump 23.9.0 to add posgresql-17 on init
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-12-07 22:28:57 +01:00

24 lines
907 B
Text

#!/sbin/openrc-run
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${GVMD_USER:=gvm}
: ${GVMD_GROUP:=$(id -ng ${GVMD_USER})}
: ${GVMD_TIMEOUT:=30}
name="Greenbone Vulnerability Manager"
command=/usr/bin/gvmd
command_args="${GVMD_VT_UPDATE} ${GVMD_OPTIONS} ${GVMD_LISTEN_ADDRESS_TCP} ${GVMD_PORT} ${GVMD_SCANNER_HOST} ${GVMD_GNUTLS_PRIORITIES}"
command_user="${GVMD_USER}:${GVMD_GROUP}"
pidfile="/run/gvmd/gvmd.pid"
retry="${GVMD_TIMEOUT}"
depend() {
after bootmisc postgresql postgresql-9.6 postgresql-10 postgresql-11 postgresql-12 postgresql-13 postgresql-14 postgresql-15 postgresql-16 postgresql-17
want postgresql postgresql-9.6 postgresql-10 postgresql-11 postgresql-12 postgresql-13 postgresql-14 postgresql-15 postgresql-16 postgresql-17
need localmount net ospd-openvas
}
start_pre() {
checkpath -d --owner ${GVMD_USER} /run/gvmd
}