You are here: Home » Topic » Check if user is still logged in before shutdown server

Check if user is still logged in before shutdown server

FireFly Media Server (formerly mt-daapd) Firefly Media Server Forums Firefly Media Server General Discussion Check if user is still logged in before shutdown server

This topic contains 1 reply, has 1 voice, and was last updated by  fizze 9 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2457

    hannsens

    Hi,

    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?

    Thanks,

    Hannes

    #17065

    fizze
    Participant

    I guess you could parse that XML from firefly. That is documented, and should still be fairly easy in a shell script.

    IMHO it should be enough to parse for the existance of “streaming” in the response file. No need to go boogy-down with the XML scheme.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.