From owner-freebsd-hackers Thu Nov 19 15:45:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09095 for freebsd-hackers-outgoing; Thu, 19 Nov 1998 15:45:07 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from verdi.nethelp.no (verdi.nethelp.no [158.36.41.162]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA09088 for ; Thu, 19 Nov 1998 15:45:03 -0800 (PST) (envelope-from sthaug@nethelp.no) From: sthaug@nethelp.no Received: (qmail 12224 invoked by uid 1001); 19 Nov 1998 23:44:31 +0000 (GMT) To: nik@nothing-going-on.demon.co.uk Cc: dot@dotat.at, hackers@FreeBSD.ORG Subject: Re: /etc/rc.d, and changes to /etc/rc? In-Reply-To: Your message of "Thu, 19 Nov 1998 21:57:48 +0000" References: <19981119215748.35037@nothing-going-on.org> X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Fri, 20 Nov 1998 00:44:31 +0100 Message-ID: <12222.911519071@verdi.nethelp.no> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > And I dislike calling the scripts > > /etc/rc.d/foo.sh because (IMO) the .sh is redundant and potentially > > misleading if (e.g.) the sysadmin decides to rewrite them in Perl. At least in Solaris there is a difference: /etc/rc.d/foo.sh is sourced (run in the same shell), while /etc/rc.d/foo is run in a subshell. This means that if you want to do something which affects other startup jobs, (eg. set umask to 022), you better do it in foo.sh. A useful difference, IMHO. Steinar Haug, Nethelp consulting, sthaug@nethelp.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message