summaryrefslogtreecommitdiff
blob: 9a93713bd591720dfd55ce7e6bca60a4c526c26a (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 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

: ${GSAD_USER:=gvm}
: ${GSAD_GROUP:=$(id -ng ${GSAD_USER})}
: ${GSAD_TIMEOUT:=30}

name="Greenbone Security Assistant (GSA)"
command="/usr/bin/gsad"
command_args="--foreground ${GSAD_OPTIONS} ${GSAD_LISTEN_ADDRESS} ${GSAD_LISTEN_PORT} ${GVMD_LISTEN_ADDRESS} ${GVMD_LISTEN_PORT} ${GSAD_GNUTLS_PRIORITIES}"
command_background="true"
command_user="${GSAD_USER}:${GSAD_GROUP}"
pidfile="/run/gsad/gsad.pid"
retry="${GSAD_TIMEOUT}"

depend() {
	after bootmisc
	need localmount net gvmd
}

start_pre() {
        checkpath -d /run/gsad
}