blob: aae78b2e1ab85fb90d8a838a86ed0704c5ea92d3 (
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
26
27
28
29
30
31
|
#!/sbin/openrc-run
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${GSAD_USER:=gvm}
: ${GSAD_TIMEOUT:=30}
: ${GSAD_PIDFILE:="/run/gsad/gsad.pid"}
name="Greenbone Security Assistant (GSA)"
command="/usr/bin/gsad"
command_args="${GSAD_OPTIONS} ${GSAD_LISTEN_ADDRESS} ${GSAD_LISTEN_PORT} ${GVMD_LISTEN_ADDRESS} ${GVMD_LISTEN_PORT} ${GSAD_GNUTLS_PRIORITIES} --drop-privileges=${GSAD_USER}"
retry="${GSAD_TIMEOUT}"
depend() {
after bootmisc
need localmount net
want gvmd
}
start_pre() {
checkpath -d --mode 0755 --owner root /run/gsad
}
stop_post() {
if [ -f "${GSAD_PIDFILE}" ]; then
ebegin "Removing PID file"
rm --force "${GSAD_PIDFILE}"
eend $?
fi
}
|