[ -f /etc/sysconfig/rrdcached ] && . /etc/sysconfig/rrdcached
# Set defaults if not defined in service config file
+RRDCACHED_USER=${RRDCACHED_USER:-rrdcached}
+RRDCACHED_GROUP=${RRDCACHED_GROUP:-rrdcached}
+RRDCACHED_SOCKET_GROUP=${RRDCACHED_SOCKET_GROUP:-rrdcached}
RRDCACHED_WRITE_TIMEOUT=${RRDCACHED_WRITE_TIMEOUT:-300}
RRDCACHED_WRITE_DELAY=${RRDCACHED_WRITE_DELAY:-180}
RRDCACHED_WRITE_THREADS=${RRDCACHED_WRITE_THREADS:-4}
fi
msg_starting "rrdcached"
- daemon /usr/bin/rrdcached -U rrdcached -G rrdcached -s rrdcached -m 0660 -w ${RRDCACHED_WRITE_TIMEOUT} -z ${RRDCACHED_WRITE_DELAY} -t ${RRDCACHED_WRITE_THREADS}
+ daemon /usr/bin/rrdcached -U ${RRDCACHED_USER} -G ${RRDCACHED_GROUP} -s ${RRDCACHED_SOCKET_GROUP} -m 0660 -w ${RRDCACHED_WRITE_TIMEOUT} -z ${RRDCACHED_WRITE_DELAY} -t ${RRDCACHED_WRITE_THREADS}
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rrdcached
}
+# User and group that daemon will run under
+#RRDCACHED_USER="rrdcached"
+#RRDCACHED_GROUP="rrdcached"
+
+# Group for socket file
+#RRDCACHED_SOCKET_GROUP="rrdcached"
+
# Write interval in seconds
#RRDCACHED_WRITE_TIMEOUT=300
Summary(uk.UTF-8): RRDtool - це система зберігання та показу серійних даних
Name: rrdtool
Version: 1.8.0
-Release: 1
+Release: 2
License: GPL v2+ + FLOSS exception
Group: Applications/Databases
Source0: https://github.com/oetiker/rrdtool-1.x/releases/download/v%{version}/%{name}-%{version}.tar.gz