From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 19:27:59 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 8F836106566C for ; Tue, 23 Aug 2011 19:27:59 +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 206F58FC0C for ; Tue, 23 Aug 2011 19:27:58 +0000 (UTC) Received: from vhoffman-macbooklocal.local ([10.10.10.20]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id p7NJRtCE000193 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 23 Aug 2011 20:27:56 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4E53FF3B.40606@unsane.co.uk> Date: Tue, 23 Aug 2011 20:27:55 +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: Pavel Timofeev References: <20110823173943.0f17d4c5@mr12941> In-Reply-To: X-Enigmail-Version: 1.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Tue, 23 Aug 2011 19:27:59 -0000 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"