mirror of
https://github.com/mpolden/echoip.git
synced 2025-01-27 18:35:04 +01:00
Fix cleanup in daemonize script
This commit is contained in:
parent
a1ac29969f
commit
a200325d11
@ -32,7 +32,8 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
PID=$(head -n1 $PID_FILE)
|
PID=$(head -n1 $PID_FILE)
|
||||||
echo "Stopping $NAME: $PID"
|
echo "Stopping $NAME: $PID"
|
||||||
kill $PID && rm -- $PID_FILE $LOCK_FILE
|
kill $PID
|
||||||
|
rm -f -- $PID_FILE $LOCK_FILE
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
if [[ ! -s "$PID_FILE" ]]; then
|
if [[ ! -s "$PID_FILE" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user