]> TLD Linux GIT Repositories - packages/rrdtool.git/commitdiff
- run as uid/gid rrdcached, set group for unix socket
authorMarcin Krol <hawk@tld-linux.org>
Mon, 6 Mar 2023 22:07:43 +0000 (23:07 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 6 Mar 2023 22:07:43 +0000 (23:07 +0100)
rrdcached.init

index 36d1d9ae5934f9c877996c2e236e4e41b657868e..a444438126bac6fed1ac5ed3cd0ca95eb39a9c15 100644 (file)
@@ -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
 }