summaryrefslogtreecommitdiff
path: root/net-analyzer/gsad/files/gsad-22.init
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/gsad/files/gsad-22.init')
-rw-r--r--net-analyzer/gsad/files/gsad-22.init24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-analyzer/gsad/files/gsad-22.init b/net-analyzer/gsad/files/gsad-22.init
new file mode 100644
index 000000000000..9a93713bd591
--- /dev/null
+++ b/net-analyzer/gsad/files/gsad-22.init
@@ -0,0 +1,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
+}