]> git.llucax.com Git - z.facultad/75.08/llamadas.git/blobdiff - inst/afimonio_daemon.sh
bugfix.
[z.facultad/75.08/llamadas.git] / inst / afimonio_daemon.sh
index db8d3ebd9312189c409db2425fd08165b760f853..ac0fd0c1269ae96a7c2cb6380c9580edf10e2e2f 100755 (executable)
@@ -11,8 +11,10 @@ help () {
 
 case "$1" in
        "start")
 
 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
        ;;
        "stop")
                if ! is_lock "afimonio" ; then