You could try starting LMS using this debugging script..

# sudo ./lms-debug.sh

lms-debug.sh:

Code:
--------------------
    
  #!/bin/bash
  # Script to debug startup of squeezeboxserver/logitechmediaserver
  
  TRUNCATE=1
  GITDEAMON='/usr/share/lms/server/slimserver.pl'
  ALTDEAMON=
  
  stamp(){
        DATE=$(date '+%F %H:%M:%S.%N')
        DATE=${DATE#??}
        DATE=${DATE%?????}
        echo "[${DATE}] $(basename $0) ($$) " $@
  }
  
  
  # Process command line..
  while [ $# -gt 0 ]; do
        case "$1" in
                -h|--help)
                echo "$(basename $0) [--keep] [--git /path/to/slimserver.pl] 
[--nogit] [/path/to/alt/slimserver.pl]"
                exit 0
                ;;
        --keep)
                TRUNCATE=0
                ;;
        --git)
                shift
                GITDEAMON="$(readlink -f "$1")"
                ;;
        --nogit)
                GITDEAMON=
                ;;
        *)
                if [ -z "$ALTDEAMON" ]; then
                        ALTDEAMON="$(readlink -f "$1")"
                fi
                ;;
        esac
        shift
  done
  
  
  INSTNAME='squeezeboxserver'
  INSTUSER='squeezeboxserver'
  INSTGROUP=$(id -ng "$INSTUSER")
  DAEMON=
  
  for DAEMON in "$ALTDEAMON" "$GITDEAMON" "/usr/sbin/${INSTNAME}" 
"/usr/libexec/${INSTNAME}" "/tmp/blip"
  do
        if ([ ! -z "$DAEMON" ] &&  [ -x "$DAEMON" ]); then
                echo "Found ${DAEMON}"
                break;
        fi
  done
  
  if [ ! -x $DAEMON ]; then
        echo "Error: cannot find ${INSTNAME}"
        echo "Aborting.."
        exit 1
  fi
  
  PIDFILE=/var/lib/${INSTNAME}/${INSTNAME}.pid
  LIBDIR=/var/lib/${INSTNAME}
  LOGDIR=/var/log/${INSTNAME}
  PREFSDIR=${LIBDIR}/prefs
  CACHEDIR=${LIBDIR}/cache
  
  for DIR in "$LIBDIR" "$LOGDIR" 
  do
        if [ ! -d "$DIR" ]; then
                mkdir -p "$DIR"
                chown -R "${INSTUSER}:${INSTGROUP}" "$DIR"
                chmod 1710 "$DIR"
        fi
  done
  
  OUTFILE=$(basename $0)
  OUTFILE="${OUTFILE%.*}"
  OUTFILE="${OUTFILE}.txt"
  
  
  # Truncate
  if [ $TRUNCATE -gt 0 ]; then
        stamp "Attempting to start: ${DAEMON}" >"$OUTFILE"
  else  
        stamp "Attempting to start: ${DAEMON}" >>"$OUTFILE"
  fi
  
  if [ -e ${PIDFILE} ]; then
  rm ${PIDFILE}
  fi
  
  echo "Attempting to start ${DAEMON}.."
  echo "  Console output redirected to ${OUTFILE}.."
  echo "  Hit CTRL+C to terminate.."
  
  sudo -u ${INSTUSER} /usr/bin/perl $DAEMON --pidfile=${PIDFILE} 
--prefsdir=${PREFSDIR} --logdir=${LOGDIR} --cachedir=${CACHEDIR} --charset=utf8 
--diag --d_startup >>${OUTFILE} 2>&1
  EXITCODE=$?
  
  stamp "${DAEMON} exited, code ${EXITCODE}." >>"$OUTFILE"
  echo ' '
  echo "${DAEMON} exited, code ${EXITCODE}.  Examine ${OUTFILE} for details.."
  
--------------------
That should produce enough error output to help you debug the problem..


------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=96892

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to