Hello all, I am sure this subject has come up before but a quick search did not bring me a definitive answer, so here goes.
I want to detect idle squeezeboxes from the linux server that runs the squeezecenter server. My plan is to have the server shutdown after something like 15 mins without activity, and wake-up on WOL (with a Duet, currently...) I want to avoid sleeping the server when a player has a song in pause. I would like to put it to sleep when players are stopped or off. I wonder if there is a blessed way of detecting idle clients ? - Using netstat or tcpstat, I can watch the number of packets out of the server on port 9000/tcp. This is a bit tricky for various reasons (no way to tell the difference between pause and stop, for example) - Using lsof I can see the files from the library that are being played or paused. Unfortunately, I can't find any sign of file-related activity when listening to radio streams. So, even getting status from both tools, there is a chance I can shutdown the server while a radio stream is in pause. I feel all this is somewhat convoluted. I read some of you are using the CLI, but I did not really figured which commands I should pass to the CLI in order to see what the clients are currently doing. Thanks in advance for your comments and directions. -- epoch1970 ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=49028 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/unix
