]> git.llucax.com Git - z.facultad/75.08/llamadas.git/blobdiff - inst/afimonio_daemon.sh
fix
[z.facultad/75.08/llamadas.git] / inst / afimonio_daemon.sh
index 64886a83ceffa51444ec046e6c472b0aded39155..1aee8ff8644ee3a8f40331cd537dbc1c86c836ba 100755 (executable)
@@ -15,6 +15,10 @@ case "$1" in
                nohup "$AFIMONIO_BINDIR/afimonio" & 2>&1 > /dev/null
        ;;
        "stop")
                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
                echo "Parando el demonio 'afimonio' ..."
                A_PID=`cat "$HOME/lock/afimonio.pid"`
                kill $A_PID