From owner-freebsd-hackers Thu Jun 19 14:39:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA20892 for hackers-outgoing; Thu, 19 Jun 1997 14:39:07 -0700 (PDT) Received: from burka.rdy.com (dima@burka.rdy.com [205.149.163.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA20885 for ; Thu, 19 Jun 1997 14:39:03 -0700 (PDT) Received: by burka.rdy.com id OAA22385; (8.8.5/RDY) Thu, 19 Jun 1997 14:38:52 -0700 (PDT) Message-Id: <199706192138.OAA22385@burka.rdy.com> Subject: Re: btw In-Reply-To: <199706191002.DAA29358@flea.best.net> from Darren Reed at "Jun 19, 97 07:54:50 pm" To: avalon@coombs.anu.edu.au (Darren Reed) Date: Thu, 19 Jun 1997 14:38:52 -0700 (PDT) Cc: dima@best.net, hackers@FreeBSD.ORG X-Class: Fast Organization: HackerDome Reply-To: dima@best.net From: dima@best.net (Dima Ruban) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Darren Reed writes: > In some mail from Dima Ruban, sie said: > > > > Hey guys! > > > > Why do we call /etc/rc.local by: (thats from /etc/rc) > > # Do traditional (but rather obsolete) rc.local file if it exists. > > [ -f /etc/rc.local ] && sh /etc/rc.local > > ^^^^ > > and not ". /etc/rc.local"? > > does rc (sh) handle errors the same way with "sh xx" and ". xx" ? It doesn't realy matter. tick:/# tail -5 /etc/rc # Do traditional (but rather obsolete) rc.local file if it exists. [ -f /etc/rc.local ] && sh /etc/rc.local date exit 0 tick:/# Even if ". /etc/rc.local" will be abnormaly terminated we won't loose anything but "date" command :-) And one other thing. All rc.files that we have we run with "." and not with "sh". All but /etc/rc.local. > > -- dima