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/
Home Products Support Community News


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 (X11/20081120)
Josiah Bryan wrote:
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

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