From: Tobias Oetiker Date: Fri, 10 Oct 2008 05:19:06 +0000 (+0000) Subject: This patch does two things: X-Git-Tag: 1.4.0~265 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2d387d445327ae3ef486ded3b72f4e504b9c3e0;p=thirdparty%2Frrdtool-1.x.git This patch does two things: - remove the --pidfile check, for compatibility with older RHEL/Centos systems - update the username used by the init script, to remain consistent with Bernard's changes to the spec file -- Daniel.Pocock git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1593 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/etc/rrdcached-default b/etc/rrdcached-default index 10e166fd..d8d4d597 100644 --- a/etc/rrdcached-default +++ b/etc/rrdcached-default @@ -1,7 +1,7 @@ RUN_RRDCACHED=0 -RRDCACHED_USER="nobody" +RRDCACHED_USER="rrdcached" OPTS="-w 300 -z 300" diff --git a/etc/rrdcached-init b/etc/rrdcached-init index cbfbba1a..0748cb1a 100644 --- a/etc/rrdcached-init +++ b/etc/rrdcached-init @@ -23,7 +23,7 @@ case "$1" in echo -n "Starting rrdcached: " [ -f $RRDCACHED ] || exit 1 - daemon --user=$RRDCACHED_USER --pidfile=$PIDFILE \ + daemon --user=$RRDCACHED_USER \ $RRDCACHED $OPTS -p $PIDFILE -l $SOCKFILE RETVAL=$? echo