From owner-freebsd-current Sun Jul 9 14:39:11 2000 Delivered-To: freebsd-current@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id 45EA537B913 for ; Sun, 9 Jul 2000 14:38:55 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 8535208 invoked from network); 9 Jul 2000 21:38:52 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 9 Jul 2000 21:38:52 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id XAA74001; Sun, 9 Jul 2000 23:38:48 +0200 (CEST) (envelope-from root) Posted-Date: Sun, 9 Jul 2000 23:38:48 +0200 (CEST) To: Mike Meyer Cc: freebsd-current@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: etc/rc.d & things... References: <14695.51428.314772.426883@guru.mired.org> Reply-To: clefevre@citeweb.net X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C From: Cyrille Lefevre Date: 09 Jul 2000 23:38:47 +0200 In-Reply-To: Mike Meyer's message of "Sat, 8 Jul 2000 19:35:48 -0500 (CDT)" Message-ID: Lines: 48 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Canyonlands" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Meyer writes: > > 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). I guess you would like to says that scripts.sh lives in /etc/init.d while XXXscripts.sh lives in /etc/rc.d and /etc/shutdown.d. if not, you are at the oposite of the SystemV semantic ! and would be a pain for system administrators. why not to simply adopt the SystemV semantic ? not all is bad in System V :) > 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. Cyrille. -- home:mailto:clefevre%no-spam@citeweb.net Supprimer "%no-spam" pour me repondre. work:mailto:Cyrille.Lefevre%no-spam@edf.fr Remove "%no-spam" to answer me back. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message