FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › mt-daapd -v
- This topic has 8 replies, 4 voices, and was last updated 17 years, 6 months ago by
sonichouse.
-
AuthorPosts
-
06/12/2006 at 2:01 PM #868
CCRDude
ParticipantI’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=yesWell, 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 π
06/12/2006 at 9:03 PM #7745fizze
Participantinteresting. What NAS are you using?
06/12/2006 at 9:14 PM #7746CCRDude
ParticipantA 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 π
07/12/2006 at 4:03 AM #7747rpedde
ParticipantI’ld say a command line parameter to display the version would be very helpful π
I’ll add it as -V.
— Ron
07/12/2006 at 7:49 AM #7748fizze
Participantyeah, looking sweet.
actually, adding something like that to unslung would be rather easy, I guess. π08/12/2006 at 12:44 PM #774910/01/2007 at 6:06 PM #7750sonichouse
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,
Steve11/01/2007 at 1:28 AM #7751rpedde
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,
SteveThere’s always a critic. π
added in r1482.
— Ron
11/01/2007 at 5:24 PM #7752sonichouse
Participant@rpedde wrote:
There’s always a critic. π
Sorry, but I have always been known for my pedancy :D.
–Steve -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.