From: Tobias Oetiker Date: Fri, 10 Oct 2008 05:21:19 +0000 (+0000) Subject: This patch ensures that when rrdcached is stopped, it cleans up the X-Git-Tag: 1.4.0~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=913e7191760d62b46a525af16a34d96e0835c01a;p=thirdparty%2Frrdtool-1.x.git This patch ensures that when rrdcached is stopped, it cleans up the pid file. Apparently this is necessary if RRDCACHED_USER is not the default "rrdcached". -- Bernard Li git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1595 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/etc/rrdcached-init b/etc/rrdcached-init index 0748cb1a..45b5cdf7 100644 --- a/etc/rrdcached-init +++ b/etc/rrdcached-init @@ -36,7 +36,7 @@ case "$1" in killproc rrdcached RETVAL=$? echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rrdcached + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rrdcached && rm -rf $PIDFILE ;; restart|reload)