Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: check if vdr alive
Why donīt you write a start/stop-script which you can store under
/etc/init.d and takes
the arguments start|stop|info ?
You could then add a cron-job that executes every ten minutes a script that
runs "/etc/init.d/vdr info" and parses the results ...
Depending on the result you take your desired action...
If your start/stop-script is started with "info" then it will do something
like this "ps -ef | grep vdr | wc -l "
Would this be satisfying ?
Why vdr two times?
Cheers,
Marcel
> -----Original Message-----
> From: Juergen Schmidt [SMTP:ju@ct.heise.de]
> Sent: Tuesday, February 05, 2002 13:55
> To: vdr@linuxtv.org
> Subject: [vdr] check if vdr alive
>
> 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...
>
>
If you have received tihs e-mail in error or wish to read our e-mail disclaimer
statement and monitoring policy, please refer to http://www.drkw.com/disc/email/
or contact the sender
Home |
Main Index |
Thread Index