From db6fa63db0210fe6306e52da4390e53415ece6b9 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sun, 24 Oct 2004 20:54:13 +0000 Subject: [PATCH 1/1] fix --- inst/afimonio_daemon.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inst/afimonio_daemon.sh b/inst/afimonio_daemon.sh index 64886a8..1aee8ff 100755 --- a/inst/afimonio_daemon.sh +++ b/inst/afimonio_daemon.sh @@ -15,6 +15,10 @@ case "$1" in nohup "$AFIMONIO_BINDIR/afimonio" & 2>&1 > /dev/null ;; "stop") + if ! is_lock "afimonio" ; then + echo "El demonio no esta corriendo ... Abortando" + exit 0 + fi echo "Parando el demonio 'afimonio' ..." A_PID=`cat "$HOME/lock/afimonio.pid"` kill $A_PID -- 2.43.0