From owner-cvs-all Sat Jul 8 17:36:36 2000 Delivered-To: cvs-all@freebsd.org Received: from guru.mired.org (zoom0-088.telepath.com [216.14.0.88]) by hub.freebsd.org (Postfix) with SMTP id B2BE537BA3D for ; Sat, 8 Jul 2000 17:36:26 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 15317 invoked by uid 100); 9 Jul 2000 00:35:48 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14695.51428.314772.426883@guru.mired.org> Date: Sat, 8 Jul 2000 19:35:48 -0500 (CDT) To: current@FreeBSD.org Cc: cvs-all@FreeBSD.ORG Subject: etc/rc.d & things... In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > By all means, use start/stop args, but hard link the .sh files into seperate > directories or something so that the order can be tweaked.. If all you want is to make sure that shutdown happens in the reverse order of startup, that can be done by reversing the list in rc.shutdown. But how about going a step further, and starting towards a user-friendly configuration process? Instead of being globbed at init time, etc/rc.d is a repository for things that take start/stop arguments. They are symlinked to /etc/init.d with numeric prefixes to control order at initialization time. Likewise, they can be symlinked to /etc/down.d (or shutdown.d) with numeric prefixes to control order at shutdown time. Note that the directories full of symlinks are in /etc, not in /usr/X11R6/etc, etc. The rc.d's in those are also treated as repositories, so you can symlink to files in those asd well. These should save a bit of time at boot; no need to fool with lists of directories, etc. - just one directory. The real work will be adding a one-line description near the start of the file: # Init: 300. Shutdown: -1. Description: Standard smtp (mail) daemon. (indicating that it should be installed as /etc/init.d/300sendmail.sh, and no shutdown installation is necessary). Later, we can add a tool that globs the etc/rc.d directories for files with those lines, and provides a nice visual "system process configuration" tool, allowing you to click on these things to move them back and forth. Some rules regarding the shutdown/startup priorites might be needed for ports. Given some prodding, I might even be talked into taking a crack at the tool (an X tool, maybe) before there's a commitment to supporting this structure.