I use Firefly on my Mediaserver, provinding TV via VDR, etc.
After not beeing used for 20 Minutes, the Server shuts down automatically. I have some scripts checking various programs, if the server can shutdown, returning the number of minutes to wait till next try.
Is there a shell-command providing how many users logged in, or simply: providing whether songs streamed?