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