Add back code to delete PID file on successful exit https://sourceforge.net/p/webadmin/bugs/5471/

This commit is contained in:
Jamie Cameron
2021-04-12 17:40:06 -07:00
parent 291a0f58eb
commit a7eaef4517

View File

@ -38,6 +38,11 @@ stop)
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $LOCKFILE
pidfile=`grep "^pidfile=" $CONFFILE | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$PIDFILE
fi
rm -f $pidfile
fi
;;
status)