From owner-freebsd-stable@FreeBSD.ORG Thu Jan 18 10:47:24 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E18316A40F for ; Thu, 18 Jan 2007 10:47:24 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2D84013C45A for ; Thu, 18 Jan 2007 10:47:23 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H7Uni-0002r4-Rl for freebsd-stable@freebsd.org; Thu, 18 Jan 2007 11:47:22 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jan 2007 11:47:22 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Jan 2007 11:47:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Thu, 18 Jan 2007 11:47:07 +0100 Lines: 12 Message-ID: References: <1169038057.23831.24.camel@richard02> <200701171608.55482.nvass@teledomenet.gr> <1169046617.23831.46.camel@richard02> <1169110028.20706.53.camel@chaffinch> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.4 (X11/20060625) In-Reply-To: <1169110028.20706.53.camel@chaffinch> Sender: news Subject: Re: Failover-HA-Setup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 10:47:24 -0000 Richard wrote: > If the variable mysql_enable is set in '/etc/rc.conf', mysql is started > on both nodes at startup, it it is not there (and the passive node won't > work due to the lack of mounted diskspace), heartbeat call > '/usr/local/etc/rc.d/mysql-server start' and nothing happens. rc.conf is "sourced" by rc.subr. In other words, it's a shell script. You can thus set it up so it sets some variables when called from heartbeat and others when called by boot. For example, you can set an environment variable by heartbeat (or by a script that heartbeat calls...) and judge from that.