]> git.llucax.com Git - z.facultad/75.08/llamadas.git/commitdiff
fix
authorRicardo Markiewicz <gazer.arg@gmail.com>
Sun, 24 Oct 2004 20:54:13 +0000 (20:54 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Sun, 24 Oct 2004 20:54:13 +0000 (20:54 +0000)
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")
+               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