pgf wrote:
> No -- SIGTERM is the default, for all versions of kill/pkill/killall.
>
> For some reason, if the audio device has gone away (probably not a
> well-tested scenario), one of squeezelite's threads doesn't die from the
> first kill -TERM, but does die from the second.
>
> I've put a similar workaround in my script.
>
> I want to look at your soft power-off code, then I'll publish a new
> version.
Forget my earlier soft power-off code. Do this:
Put this somewhere near the top:
Code:
--------------------
. /usr/local/etc/pcp/pcp.cfg
audiodev=$(echo $OUTPUT | awk -FCARD= '{print $2}' | awk -F, '{print $1}' )
. /var/www/cgi-bin/pcp-functions
. /var/www/cgi-bin/pcp-lms-functions
--------------------
The first line populates a load of pCP squeezelite variables, so you can
get audiodev from $OUTPUT, and $NAME holds the player name. Then after
the restart command, this is all that's needed.
Code:
--------------------
# turn on player in LMS
pcp_lms_power 1
--------------------
------------------------------------------------------------------------
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