chill wrote: 
> Aargh!  Guess what.  On my Pi3A+, the command
> '/usr/local/etc/init.d/squeezelite stop', when called within your script
> (with or without 'sudo'), only deletes the pidfile.  It does NOT kill
> the squeezelite process.  Exactly the same behaviour as I was seeing
> with the udev script.
> 
> Calling 'sudo /usr/local/etc/init.d/squeezelite stop' from the command
> line DOES kill the process, but only if the pidfile is present.

On this Pi3A+, the 'Restart Squeezelite with new settings' button on the
pCP main page DOES succeed in killing the old process and starting a new
one.  So I assumed it must be doing something different.  But in fact
'main.cgi' calls 'restartsqlt.cgi' which calls 'pcp_squeezelite_stop'
then 'pcp_squeezelite_start'.  No prizes for guessing that
'pcp_squeezelite_stop' calls 'sudo /usr/local/etc/init.d/squeezelite
stop'.

So how on earth can it be that 'sudo /usr/local/etc/init.d/squeezelite
stop', when called by pCP or by user tc from the command line, will
successfully stop the process, but when called from a User Command
script or a udev script it will not?  Makes no sense!


------------------------------------------------------------------------
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