From owner-freebsd-isp@FreeBSD.ORG Mon Apr 12 15:57:47 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 047E016A4CE for ; Mon, 12 Apr 2004 15:57:47 -0700 (PDT) Received: from fish.ish.com.au (adsl-52-22.swiftdsl.com.au [218.214.52.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DF6443D45 for ; Mon, 12 Apr 2004 15:57:46 -0700 (PDT) (envelope-from ari@ish.com.au) Received: from [203.29.62.8] (helo=neuro.net.au) by fish.ish.com.au with esmtp (Exim 4.30) id 1BDALw-0006E6-9h; Tue, 13 Apr 2004 08:56:32 +1000 Received: from [203.29.62.159] (HELO [203.29.62.159]) by neuro.net.au (CommuniGate Pro SMTP 4.1.8) with ESMTP id 840345; Tue, 13 Apr 2004 08:57:28 +1000 In-Reply-To: <20040410170924.GA15943@laptop.lambertfam.org> References: <7E8A3A1C-8AA0-11D8-B20E-003065A9024A@ish.com.au> <20040410170924.GA15943@laptop.lambertfam.org> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Aristedes Maniatis Date: Tue, 13 Apr 2004 08:57:44 +1000 To: Scott Lambert X-Mailer: Apple Mail (2.613) X-Scan-Signature: 556eb62266817c7308c6c0dded25f1cc cc: freebsd-isp@freebsd.org Subject: Re: synchronising failover web servers X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 22:57:47 -0000 So, say you have to update /usr/local/etc/httpd.conf. Would your process be this: * checkout cvs onto your workstation * change httpd.conf * check into cvs * log into server * update cvs repository * run Makefile script which installs httpd.conf in the correct location from the cvs repository and then executes 'apachectrl graceful'. * repeat on secondary standby machine by running a Makefile which uses ssh to trigger a remote Makefile I've never really liked Makefiles, but I guess we could do something very similar with shell scripts. Thanks for the info. But what do you do about synchronising data directories (eg. /usr/local/etc/www/data). In those cases you very often can't put them into cvs. Do you use Unison or something similar? Cheers Ari Maniatis On 11/04/2004, at 3:09 AM, Scott Lambert wrote: > One word "Makefiles". :-) I have a lot of system configs in cvs. > Eventually I'll have all of them. Each subsystem config has it's > own directory and I have Makefiles setup to work the subdirs where > necessary. We check the configs out in our home directories on each > machine and run : > > $ make update install [test] [restart] --------------------------> ish group pty ltd 7 Darghan St Glebe 2037 Australia phone +61 2 9660 1400 fax +61 2 9660 7400 http www.ish.com.au | email info@ish.com.au PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8