From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 04:39:38 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B003106564A for ; Wed, 24 Aug 2011 04:39:38 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id C816F8FC08 for ; Wed, 24 Aug 2011 04:39:37 +0000 (UTC) Received: by iye7 with SMTP id 7so2644722iye.17 for ; Tue, 23 Aug 2011 21:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T+rvViS6vTX8lUNK6ybogK/gRA7/6B6rIlms7Y1HFn8=; b=oFB+8vRDjczAv01G+3e2dUCt9MeVf3FysjI34xjWCURIi6LbqdHtOGRIpT1aHXh41r EUrTGr/BG7kDiI+NMgR7CBgvKuWmC+a0nHZJSTxIQ/L+YJD3F5f/XZ6TbyWWaLM8IfoB N+lv3HH9DqxvydBxIQNQhchGHPQNUxlZm0/eo= MIME-Version: 1.0 Received: by 10.231.62.149 with SMTP id x21mr9239825ibh.96.1314160776985; Tue, 23 Aug 2011 21:39:36 -0700 (PDT) Received: by 10.231.36.66 with HTTP; Tue, 23 Aug 2011 21:39:36 -0700 (PDT) In-Reply-To: <4E53FF3B.40606@unsane.co.uk> References: <20110823173943.0f17d4c5@mr12941> <4E53FF3B.40606@unsane.co.uk> Date: Wed, 24 Aug 2011 08:39:36 +0400 Message-ID: From: Pavel Timofeev To: Vincent Hoffman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Patrick Lamaiziere , freebsd-questions@freebsd.org Subject: Re: Can carp(4) run daemons or scripts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2011 04:39:38 -0000 Big thanks! I'll stop on carp and devd! I think such example (from your link) must be in handbook. Because it's goo= d native solution from base system. Or at least link from carp section to devd section. Who do I need to write with this idea? 2011/8/23 Vincent Hoffman > On 23/08/2011 17:21, Pavel Timofeev wrote: > > Oh, thank you very much! > > I didn't know about ifstated. I'll try it. > > > >> Also may be with devd > > How? What do you mean? > devd is the freebsd device state change daemon, it will track device > state changes and you can tell it to act on them. > A quick google for devd and carp gives > http://blather.michaelwlucas.com/archives/224 > which looks like it covers the kind of thing you want. > > Vince > > > > > 2011/8/23 Patrick Lamaiziere > > > >> Le Tue, 23 Aug 2011 17:50:43 +0400, > >> Pavel Timofeev a =C3=A9crit : > >> > >> Hello, > >> > >>> Can carp(4) run daemons or scripts when backup server come into the > >>> work? As I know ucarp and heartbeat can do this. > >> No, carp only works at the interface level. In ports you will find > >> ifstated(8) (from OpenBSD). It can react to a change on an > >> interface and run tests. > >> > >> Also may be with devd, but imo ifstated will do the trick. > >> > >> Regards. > >> > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > >