diff options
author | 2023-05-20 19:25:01 +0200 | |
---|---|---|
committer | 2023-07-03 10:15:23 +0200 | |
commit | afc85202ab1b002e5a235b13d7a130d3e2ed7bca (patch) | |
tree | 3ab03076d45bb9fb0c052d4e0cb4a35dec2877b2 /net-analyzer/openvas-scanner/files/redis-openvas.initd | |
parent | net-analyzer/notus-scanner: new package, add 22.5.0 (diff) | |
download | gentoo-afc85202ab1b002e5a235b13d7a130d3e2ed7bca.tar.gz gentoo-afc85202ab1b002e5a235b13d7a130d3e2ed7bca.tar.bz2 gentoo-afc85202ab1b002e5a235b13d7a130d3e2ed7bca.zip |
net-analyzer/openvas-scanner: add 22.7.2
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-analyzer/openvas-scanner/files/redis-openvas.initd')
-rw-r--r-- | net-analyzer/openvas-scanner/files/redis-openvas.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-analyzer/openvas-scanner/files/redis-openvas.initd b/net-analyzer/openvas-scanner/files/redis-openvas.initd new file mode 100644 index 000000000000..5c50d29dae6a --- /dev/null +++ b/net-analyzer/openvas-scanner/files/redis-openvas.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +: ${REDIS_DIR:=/var/lib/gvm/redis} +: ${REDIS_CONF:=/etc/gvm/redis-openvas.conf} +: ${REDIS_OPTS:="${REDIS_CONF}"} +: ${REDIS_USER:=gvm} +: ${REDIS_GROUP:=gvm} +: ${REDIS_TIMEOUT:=30} + +# https://bugs.gentoo.org/631002#c10 +# Force '--daemonize no' to override the config file +command="/usr/sbin/redis-server" +command_args="${REDIS_OPTS} --daemonize no" +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}\"" + +depend() { + use localmount logger + after keepalived +} |