From: Marcin Krol Date: Mon, 6 Mar 2023 22:07:43 +0000 (+0100) Subject: - run as uid/gid rrdcached, set group for unix socket X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=1bd9fd6c7b06ca47f9930b12fe53283ad2156fbd;p=packages%2Frrdtool.git - run as uid/gid rrdcached, set group for unix socket --- diff --git a/rrdcached.init b/rrdcached.init index 36d1d9a..a444438 100644 --- a/rrdcached.init +++ b/rrdcached.init @@ -25,7 +25,7 @@ start() { fi msg_starting "rrdcached" - daemon /usr/bin/rrdcached -m 0660 -w ${RRDCACHED_WRITE_TIMEOUT} -z ${RRDCACHED_WRITE_DELAY} -t ${RRDCACHED_WRITE_THREADS} + daemon /usr/bin/rrdcached -U rrdcached -G rrdcached -s rrdcached -m 0660 -w ${RRDCACHED_WRITE_TIMEOUT} -z ${RRDCACHED_WRITE_DELAY} -t ${RRDCACHED_WRITE_THREADS} RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rrdcached }