hdhwx42 wrote: > Hello Greg, > > I installed the 1.18b Version. Now I'm interested in how the > "squeezelite" script (/usr/local/etc/init.d) is called from. > Can you give me a short description or hint how it works? > > My intention is to create a standalone script in the init.d directory > that is called after the squeezelite daemon is started successfully. > > Please help. > > Thanks in advance
Hi hdhwx42, Steen has answered your question. :D If your standalone script is for auto start, :confused: read on.... If you have a look at /home/tc/www/cgi-bin/do_rebootstuff.sh you will see we call "pcp_auto_start_lms" routine just after "/usr/local/etc/init.d/squeezelite start". I suspect the issue that some people are having is a timing issue between starting squeezelite and sending the auto start command to LMS. The issues with uppercase MAC addresses could also have prevented it working for some people. Anyway, I have been playing with this function today, changed telnet to netcat, added a check that piCorePlayer has connected to LMS before sending the auto start command and added error logging. The end result is... it STILL works perfect for me with no errors, timing or otherwise detected. I'll test it over a wireless connection tomorrow, a slower network may show timing issues. I might talk the Steen about adding a couple of hooks at the end of do_rebootstuff.sh so people can add there own startup commands or routines more easily. regards Greg ------------------------------------------------------------------------ Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=97803 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
