From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 09:23:54 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 24C92106566B for ; Wed, 24 Aug 2011 09:23:54 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8A0C58FC14 for ; Wed, 24 Aug 2011 09:23:53 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id p7O9NqF7032055 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 24 Aug 2011 10:23:52 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4E54C328.5000202@unsane.co.uk> Date: Wed, 24 Aug 2011 10:23:52 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20110823173943.0f17d4c5@mr12941> <4E53FF3B.40606@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 09:23:54 -0000 On 24/08/2011 05:39, Pavel Timofeev wrote: > Big thanks! I'll stop on carp and devd! > I think such example (from your link) must be in handbook. Because it's good > native solution from base system. > Or at least link from carp section to devd section. > Who do I need to write with this idea? Too late :) I should have looked here first but i just did a quick Google. http://www.freebsd.org/doc/handbook/disks-hast.html You could suggest on freebsd-doc@ to have a link from the carp section though. Vince > > 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 écrit : >>>> >>>> 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" >> >> > _______________________________________________ > 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"