Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: check if vdr alive
Juergen Schmidt wrote:
>
> Hello,
>
> I need a way to check regularly, if vdr is still alive (and working!).
> Ther are a couple of ways I can think of like
>
> fuser /dev/ost/frontend0
> echo "quit" | nc loclahost 2001
>
> Is there a "recommended" way to check this?
>
> bye, juergen
>
> PS: As I'm running 2 instances of vdr, I have to check, I cannot use the
> simple mechanism used in runvdr...
You could insert some code into the main program loop that regularly
touches a file, for instance. An external program could check the age
of that file and take whatever action you require if the file is older
than, say, 30 seconds.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
Home |
Main Index |
Thread Index