WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Xen hearbeat and automatic restarts?

To: "Morten W. Petersen" <morten@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Xen hearbeat and automatic restarts?
From: Josiah Bryan <jbryan@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 2009 07:35:38 -0400
Cc: Xen mailinglist <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 23 Jul 2009 04:34:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A6842F4.9050102@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4A6840B5.5090205@xxxxxxxxxxxxxx>
References: <4A6842F4.9050102@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.18 (X11/20081120)
Josiah Bryan wrote:
#!/usr/bin/perl
if((time - (stat('/tmp/myheartbeat')) > 120) # seconds to wait before killing and restarting the domu on a missed heartbeat
Oops..syntax was wrong! Should have been:

if((time - (stat('/tmp/myheartbeat')[9]) > 120)

I was thinking it, just never reached my fingers in that first email. Sorry!


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>