I think this should create the PIDFILE and keep everything in sync.

Insert these two lines after the 'sleep $interval' line in the same
function, like this:

Code:
--------------------
                sleep $interval
                PID=$(/bin/busybox pgrep /usr/local/bin/squeezelite | awk 
'{printf "%s ", $1}')
                sudo echo $PID > /var/run/squeezelite.pid
  
--------------------


I'll emphasise that this is a quick and dirty approach to see if we can
work around the failure of the start-stop-daemon.  The Squeezelite
command line options are hard-coded, so if you change the Squeezelite
options in the pCP interface they won't be reflected in this script.  So
I'm not recommending this as a permanent fix.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

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

Reply via email to