From owner-cvs-etc Thu Mar 30 14:57:11 1995 Return-Path: cvs-etc-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA01051 for cvs-etc-outgoing; Thu, 30 Mar 1995 14:57:11 -0800 Received: from precipice.shockwave.com (precipice.shockwave.com [171.69.108.33]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA01045; Thu, 30 Mar 1995 14:57:08 -0800 Received: from localhost (localhost [127.0.0.1]) by precipice.shockwave.com (8.6.11/8.6.9) with SMTP id OAA04182; Thu, 30 Mar 1995 14:52:09 -0800 Message-Id: <199503302252.OAA04182@precipice.shockwave.com> To: "Rodney W. Grimes" cc: phk@ref.tfs.com (Poul-Henning Kamp), ache@freefall.cdrom.com, CVS-commiters@freefall.cdrom.com, cvs-etc@freefall.cdrom.com Subject: Re: cvs commit: src/etc/etc.i386 rc.i386 In-reply-to: Your message of "Thu, 30 Mar 1995 13:37:14 PST." <199503302137.NAA06580@gndrsh.aac.dev.com> Date: Thu, 30 Mar 1995 14:51:55 -0800 From: Paul Traina Sender: cvs-etc-owner@freebsd.org Precedence: bulk In BSD this has always been done by root editing /etc/rc.local, I never did like things that automagically went and f*cked around in /etc, I consider that evil and ugle. USG does exactly what Paul suggested, but as we've seen with ~ and .bak files, it is dangerous. They have an rc..d directory for each run level and files with the names: so it executes all the system stuff first (lower numbered stuff runs first) followed by all of the user stuff every time you change run levels. I agree with you 100% for system stuff as the ordering for this stuff is always a MAJOR pain in the ass. However, it would be nice if we could handle rc.local-ish things this way. It would be great if when you install httpd, as an example, you could install a file /etc/rc.local.d/httpd which is a shell script for starting up httpd at boot. Would you consider the following compromise? for file in rc.local.d/* l do echo $file | \ egrep -s "~$|.bak$|.orig$|.rej$|" || \ sh $file done