diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-11 15:35:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-11 15:35:17 +0100 |
commit | 75949673f38270397841d9c2322dbb774ac41554 (patch) | |
tree | efeb01f94fd2a5bf01d3c892bd0c0d5a32b63770 /net-analyzer/gvmd/files | |
parent | 7e2b5bc2c2e2e045de6095d46c24ee857453adf2 (diff) |
gentoo auto-resync : 11:08:2023 - 15:35:17
Diffstat (limited to 'net-analyzer/gvmd/files')
-rw-r--r-- | net-analyzer/gvmd/files/gvmd-22.init | 15 | ||||
-rw-r--r-- | net-analyzer/gvmd/files/gvmd-daemon-22.conf | 3 |
2 files changed, 7 insertions, 11 deletions
diff --git a/net-analyzer/gvmd/files/gvmd-22.init b/net-analyzer/gvmd/files/gvmd-22.init index f1ac6ddbac72..8fd1a0bfb335 100644 --- a/net-analyzer/gvmd/files/gvmd-22.init +++ b/net-analyzer/gvmd/files/gvmd-22.init @@ -3,14 +3,14 @@ # Distributed under the terms of the GNU General Public License v2 : ${GVMD_USER:=gvm} -: ${GVMD_GROUP:=gvm} +: ${GVMD_GROUP:=$(id -ng ${GVMD_USER})} : ${GVMD_TIMEOUT:=30} name="Greenbone Vulnerability Manager" command=/usr/bin/gvmd -command_args="${GVMD_OPTIONS} ${GVMD_LISTEN_ADDRESS_TCP} ${GVMD_PORT} ${GVMD_SCANNER_HOST} ${GVMD_GNUTLS_PRIORITIES}" +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" +pidfile="/var/run/gvmd/gvmd.pid" retry="${GVMD_TIMEOUT}" depend() { @@ -19,12 +19,5 @@ depend() { } start_pre() { - mkdir /run/gvmd - for p in gvm-checking gvm-create-functions gvm-helping gvm-migrating gvm-serving; do - touch /run/gvmd/${p} - done - chown -R gvm:gvm /run/gvmd/ - - touch /run/feed-update.lock - chown gvm:gvm /run/feed-update.lock + checkpath -d --owner ${GVMD_USER} /var/run/gvmd } diff --git a/net-analyzer/gvmd/files/gvmd-daemon-22.conf b/net-analyzer/gvmd/files/gvmd-daemon-22.conf index e1a5482747fc..061609e1c45c 100644 --- a/net-analyzer/gvmd/files/gvmd-daemon-22.conf +++ b/net-analyzer/gvmd/files/gvmd-daemon-22.conf @@ -25,5 +25,8 @@ GVMD_LISTEN_MODE="--listen-mode=755" # Scanner listen address unix socket GVMD_SCANNER_HOST="--scanner-host=/run/ospd/ospd-openvas.sock" +# Update vt +GVMD_VT_UPDATE="--osp-vt-update=/run/ospd/ospd-openvas.sock" + # TLS settings GVMD_GNUTLS_PRIORITIES="--gnutls-priorities=SECURE256:+SUITEB192:+SECURE192:+SECURE128:+SUITEB128:-MD5:-SHA1:-VERS-TLS1.0:-VERS-TLS1.1:-VERS-SSL3.0" |