Very strange that pidof, not working correctly on you're QNap.
Especially as at startup, the script does a check, if all needed
commands are available.
Should cause a completely other error, that a command is missing.

But through you're input, adjust the script, to check on both ways.
Will be included in next release.

So thanks adjust.
Next release will be out soon, working on to included the options for
MusicIPServer.

blackbite wrote: 
> Hi Digimaster,
> 
> the problem ist the use of /bin/pidof in the LogitechMediaServer.sh.
> /bin/pidof ist symlinked to busybox (not only) on my NAS. Or there is a
> typo in the else, where you do "ARGS=$(_PGREP ${QPKG_NAME}/SlimServer)".
> Please have a look.
> Here´s the actual code for the start / restart section of version
> 1.07.2
> 
> > 
Code:
--------------------
  >   > # Start LogitechMediaServer, QTS 4.3 and higher with sudo and renice, 
for faster and more secure preformance.
  > 
  > [[ -e /usr/bin/sudo ]] && (( SUDO )) && /usr/bin/sudo -Ebu ${USER} 
${QPKG_ROOT}/SlimServer/slimserver.pl $(_CONFIG) 2>> ${LOGFILE} 1>/dev/null || 
${QPKG_ROOT}/SlimServer/slimserver.pl $(_CONFIG) 2>> ${LOGFILE} 1>/dev/null && 
wait $!
  >                                                                             
                                                                                
                                                
  > 
  > # Check if Services is running and set prio if set, otherwise show error 
and exit !
  > 
  > ARGS=$(/bin/pidof slimserver.pl)
  > if (( ARGS )) ;then
  > [[ -f ${LOGFILE}.err ]] && /bin/rm ${LOGFILE}.err
  > [[ -e /bin/renice ]] && (( RENICE )) && /bin/renice $RENICE -p ${ARGS} 
&>/dev/null
  > else
  > ${QPKG_ROOT}/SlimServer/slimserver.pl $(_CONFIG) -d_startup 
&>${LOGFILE}.err && wait $!
  > _LOG 9 "CMDLINE "$(_CONFIG)
  > ARGS=$(_PGREP ${QPKG_NAME}/SlimServer) && /bin/kill -9 ${ARGS} &>/dev/null 
&& wait $!
  > _RMPERL
  > _EXIT 1 "Something went wrong, check the ${LOGFILE}.err and you're 
configuration! You could Try $0 failsafe, or reinstall QPKG! "
  > fi
  > 
--------------------
> > 
> 
> And here´s the working version of 1.07 (with the use of _PGREP):
> > 
Code:
--------------------
  >   > # Start LogitechMediaServer, QTS 4.3 and higher with sudo and renice, 
for faster and more secure preformance.
  > 
  > [[ -x /usr/bin/sudo ]] && (( SUDO )) && /usr/bin/sudo -Ebu ${USER} 
${QPKG_ROOT}/SlimServer/slimserver.pl $(_CONFIG) 2>> ${LOGFILE} 1>/dev/null || \
  > ${QPKG_ROOT}/SlimServer/slimserver.pl $(_CONFIG) 2>> ${LOGFILE} 1>/dev/null 
&& wait $!
  > 
  > # Check if Services is running and set prio if set, otherwise show error 
and exit !
  > 
  > ARGS=$(_PGREP slimserver.pl)
  > if (( ARGS )) ;then
  > [[ -f ${LOGFILE}.err ]] && /bin/rm ${LOGFILE}.err
  > [[ -x /bin/renice ]] && (( RENICE )) && /bin/renice $RENICE -p ${ARGS} 
&>/dev/null
  > else
  > ${QPKG_ROOT}/SlimServer/slimserver.pl $(_CONFIG) -d_startup 
&>${LOGFILE}.err && wait $!
  > _LOG 9 "CMDLINE "$(_CONFIG)
  > ARGS=$(_PGREP ${QPKG_NAME}/SlimServer) && /bin/kill -9 ${ARGS} &>/dev/null 
&& wait $!
  > _RMPERL
  > _EXIT 1 "Something went wrong, check the ${LOGFILE}.err and you're 
configuration! You could Try $0 failsafe, or reinstall QPKG! "
  > fi
  > 
--------------------
> > 
> 
> So, if is install 1.07.2 and replace the LogitechMediaServer.sh with
> the one from 1.07 everything is fine.
> For further troubleshooting I have tried a complete fresh install of
> 1.07.2 for at least ten times. After the successfull install, i
> directly stopped LMS and tried to restart it, and the error came back.
> So with the naked install (without my restored Cache / prefs), I could
> force this behaviour.



*
maintainer of QLogitechMediaServer, QOptware-NG and QAutoSub.

Qnap TS-453a, with LogitechMediaSever 7.9.1 ( with spotty and youtube )
Serval raspberry with hifiberry amp+ and picoreplayer.
Love logitechmediaserver for it flexibel way, to play music from
different sources.*
------------------------------------------------------------------------
digimaster's Profile: http://forums.slimdevices.com/member.php?userid=66919
View this thread: http://forums.slimdevices.com/showthread.php?t=108702

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

Reply via email to