X-Git-Url: https://git.llucax.com/z.facultad/75.08/llamadas.git/blobdiff_plain/923b97c7e4c6106cd3c10193fce6596fee074fd7..7d5d536d23cfcf84b10def316ced75a5df6cb3b1:/inst/afimonio_daemon.sh diff --git a/inst/afimonio_daemon.sh b/inst/afimonio_daemon.sh index db8d3eb..ac0fd0c 100755 --- a/inst/afimonio_daemon.sh +++ b/inst/afimonio_daemon.sh @@ -11,8 +11,10 @@ help () { case "$1" in "start") - echo "Iniciando demonio 'afimonio' en modo daemon ..." - nohup "$AFIMONIO_BINDIR/afimonio" & 2>&1 > /dev/null + echo -n "Iniciando demonio 'afimonio' en modo daemon ..." + nohup "$AFIM_BINDIR/afimonio" > /dev/null & + A_PID=`cat "$BASE_DIR/lock/afimonio.pid"` + echo " con PID=$A_PID" ;; "stop") if ! is_lock "afimonio" ; then