Fix reload problem in init.d script for RPM
[metaproxy-moved-to-github.git] / rpm / metaproxy.init
index 74fcd68..4e11c37 100755 (executable)
@@ -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"