From owner-freebsd-questions@FreeBSD.ORG Mon May 2 11:33:38 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A5816A4CE for ; Mon, 2 May 2005 11:33:38 +0000 (GMT) Received: from unsane.co.uk (unsane.co.uk [62.140.220.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id A130D43D2F for ; Mon, 2 May 2005 11:33:37 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from canth ([10.0.0.10]) (authenticated bits=0) by unsane.co.uk (8.13.3/8.13.3) with ESMTP id j42BWWcO003878; Mon, 2 May 2005 12:32:32 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-Id: <200505021132.j42BWWcO003878@unsane.co.uk> From: "Vince" To: "'Robert Slade'" , Date: Mon, 2 May 2005 12:33:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <1115024279.29920.24.camel@lmail.bathnetworks.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcVO9HRLnsqwozCyTC6DE4pcaaS+4wADZYlQ Subject: RE: FreeBSD + Heartbeat+ Samba+Rsync X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 11:33:38 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Robert Slade > Sent: 02 May 2005 09:58 > To: freebsd-questions@freebsd.org > Subject: FreeBSD + Heartbeat+ Samba+Rsync > > Hi, > > Futher to my previous mail, I have got HB & Samba running ok > now on FreeBSD 5.3. > > I am still trying to sort out the Perl Scripts for running rsync. > > The bit I am having trouble with is: > > # /etc/password - System Password File > # /etc/shadow - Actual Encrypted passwords. > # /etc/group - System Group File > # /etc/ld.so.conf - System Linked Libraries. > # /etc/shells - Valid Login Shells > my @filelist = ( "/etc/passwd", "/etc/shadow", > "/etc/group", "/etc/ld.so.conf", "/etc/shells" ); > foreach $filename (@filelist) { > system "/usr/bin/rsync > --rsh=$EnvConfig::sshpath > $EnvConfig::rsyncoptions $filename local$other:$filename"; > > Sorry about the wrapping. > > As far as I tell, FreeBSD has no System linked Libraries > hence no ld.so.conf. I am not sure what this bit of code is > trying to do and what to replace it with. I don't want to > install the Linux Compatibility libs just to run a Perl script. Looks like it is trying to synchronize essential files in /etc. What do you need to be synchronized between the two boxes? The equivalent files to the example on FreeBSD are: # /etc/password - System Password File -- The Same # /etc/shadow - Actual Encrypted passwords. -- /etc/master.passwd # /etc/group - System Group File -- The Same # /etc/ld.so.conf - System Linked Libraries. --- handled through rcNG in FreeBSD and rc.conf so best use /etc/rc.conf Also its trying to use /usr/bin/rsync while the ports system installs it in /usr/local/bin I'd check what other system files you need synced though, (make.conf, pretty much anything you have edited in /etc I guess and possibly stuff in /usr/local/etc) Vince > > Any ideas? > > Rob > > _______________________________________________ > 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" >