From: Adam Dickmeiss Date: Thu, 24 May 2012 06:46:36 +0000 (+0200) Subject: Fix reload problem in init.d script for RPM X-Git-Tag: v1.3.37~14 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3eab67d06323488694ea804539e8c28f78cd8999;p=metaproxy-moved-to-github.git Fix reload problem in init.d script for RPM The '/etc/init.d/metaproxy reload' in some cases would stop and not start metaproxy - effectively stopping the service. --- diff --git a/rpm/metaproxy.init b/rpm/metaproxy.init index 74fcd68..4e11c37 100755 --- a/rpm/metaproxy.init +++ b/rpm/metaproxy.init @@ -134,6 +134,7 @@ reload() { if [ $RETVAL = 0 ]; then killproc -p ${pidfile} -d 10 $DAEMON -USR1 RETVAL=$? + rm -f ${pidfile} else rc_status -v echo $"not reloading due to configuration syntax error"