Date: 09 Jul 2000 23:38:47 +0200 From: Cyrille Lefevre <clefevre%no-spam@citeweb.net> To: Mike Meyer <mwm@mired.org> Cc: freebsd-current@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: etc/rc.d & things... Message-ID: <itufx9ug.fsf@pc166.gits.fr> In-Reply-To: Mike Meyer's message of "Sat, 8 Jul 2000 19:35:48 -0500 (CDT)" References: <bulk.42172.20000708033413@hub.freebsd.org> <14695.51428.314772.426883@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Meyer <mwm@mired.org> 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 cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?itufx9ug.fsf>