From 3eab67d06323488694ea804539e8c28f78cd8999 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 24 May 2012 08:46:36 +0200 Subject: [PATCH] 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. --- rpm/metaproxy.init | 1 + 1 file changed, 1 insertion(+) 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" -- 1.7.10.4