commit: 35a9aa636793d4103a5c5f0b634c5c45dd3547a5
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 16 07:30:50 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Oct 16 07:36:25 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35a9aa63
net-analyzer/openvas-scanner: fix unnecessary usage of --chdir
* OPENRC: unnecessary usage of start_stop_daemon_args found:
* redis-openvas: --chdir should be replaced with
directory="/var/lib/openvas/redis"
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
net-analyzer/openvas-scanner/files/redis-openvas.initd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net-analyzer/openvas-scanner/files/redis-openvas.initd
b/net-analyzer/openvas-scanner/files/redis-openvas.initd
index 058d99d063dc..0841942eac6d 100644
--- a/net-analyzer/openvas-scanner/files/redis-openvas.initd
+++ b/net-analyzer/openvas-scanner/files/redis-openvas.initd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2023 Gentoo Foundation
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${REDIS_DIR:=/var/lib/openvas/redis}
@@ -17,7 +17,7 @@ command_background="true"
command_user="${REDIS_USER}:${REDIS_GROUP}"
pidfile="/run/${RC_SVCNAME}/redis-server.pid"
retry="${REDIS_TIMEOUT}"
-start_stop_daemon_args="--chdir \"${REDIS_DIR}\""
+directory="${REDIS_DIR}"
start_post() {
checkpath -f --mode 0644 --owner ${REDIS_USER}:${REDIS_GROUP}
/var/log/gvm/openvas.log