Fix cleanup in daemonize script

This commit is contained in:
Martin Polden 2013-01-14 12:01:45 +01:00
parent a1ac29969f
commit a200325d11
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ case "$1" in
fi
PID=$(head -n1 $PID_FILE)
echo "Stopping $NAME: $PID"
kill $PID && rm -- $PID_FILE $LOCK_FILE
kill $PID
rm -f -- $PID_FILE $LOCK_FILE
;;
status)
if [[ ! -s "$PID_FILE" ]]; then