mt-daapd -v

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #868
    CCRDude
    Participant

    I’m currently writing (well, updating from time to time) a small start page for my NAS. Among free disk space, load etc. it shows if required services are running; for that I do have a INI style configuration file, with entries like:

    [mysqld]
    caption=MySQL Server
    details="#mysql --version | grep -o 'Distrib [0-9].[0-9]*.[0-9]*'"
    active=yes

    [imap]
    caption=Dovecot IMAP Server
    details=#dovecot --version
    active=no

    [mt-daapd]
    caption=iTunes Music Server
    link=http://$_SERVER[SERVER_ADDR]:3689/
    active=yes

    Well, as you can see, it’s quite useful to use the -v or –version of most Linux application to get their version number for display. Even worse, -v is some undocumented (well not in the list of displayed options) parameter for:

    # mt-daapd -v
    Converting config file…
    Error writing config file.

    I’ld say a command line parameter to display the version would be very helpful πŸ™‚

    #7745
    fizze
    Participant

    interesting. What NAS are you using?

    #7746
    CCRDude
    Participant

    A Kurobox, but it’s actually quite a simple php script.

    I was just sick to remember all the different standard links, and creating just a page with static links to installed php apps was not that much appealing to me, so I decided to make something automated showing useful information on the entry page πŸ˜‰

    Well, and as you can see, it would be nice to have some kind of version information for every monitored daemon on that page, and the easiest way usually is to just run the executable with a version parameter and grep the important part from the std out πŸ˜‰

    #7747
    rpedde
    Participant

    I’ld say a command line parameter to display the version would be very helpful πŸ™‚

    I’ll add it as -V.

    — Ron

    #7748
    fizze
    Participant

    yeah, looking sweet.
    actually, adding something like that to unslung would be rather easy, I guess. πŸ™‚

    #7749
    CCRDude
    Participant

    A bit improved (files here):

    -V added for the future already πŸ˜‰

    #7750
    sonichouse
    Participant

    @rpedde wrote:

    I’ld say a command line parameter to display the version would be very helpful πŸ™‚

    I’ll add it as -V.

    — Ron

    Hi Ron,

    you may want to add the -V to the usage() in main.c as well ?

    Regards,
    Steve

    #7751
    rpedde
    Participant

    @sonichouse wrote:

    @rpedde wrote:

    I’ld say a command line parameter to display the version would be very helpful πŸ™‚

    I’ll add it as -V.

    — Ron

    Hi Ron,

    you may want to add the -V to the usage() in main.c as well ?

    Regards,
    Steve

    There’s always a critic. πŸ™‚

    added in r1482.

    — Ron

    #7752
    sonichouse
    Participant

    @rpedde wrote:

    There’s always a critic. πŸ™‚

    Sorry, but I have always been known for my pedancy :D.
    –Steve

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.