From owner-freebsd-current Tue Jul 11 0:30:59 2000 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id E76DB37B5ED for ; Tue, 11 Jul 2000 00:30:55 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p59-dn02kiryunisiki.gunma.ocn.ne.jp [211.0.245.124]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id QAA29347; Tue, 11 Jul 2000 16:29:34 +0900 (JST) Message-ID: <396ACCF7.B8A49A5@newsguy.com> Date: Tue, 11 Jul 2000 16:29:59 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: clefevre@citeweb.net Cc: Mike Meyer , freebsd-current@FreeBSD.ORG Subject: Re: etc/rc.d & things... References: <14695.51428.314772.426883@guru.mired.org> <14697.31325.422020.803101@guru.mired.org> <3969D84A.D23A84B6@newsguy.com> <3dlhpybs.fsf@pc166.gits.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cyrille Lefevre wrote: > > > http://www.freebsd.org/~dfr/devices.html > > off topic. Mmmmm... I must have copied the wrong link, then... > > http://www.freebsd.org/~eivind/newrc.html > > well. what about a mix of the SystemV approach (ala HP-UX) and the IRIX one > (using something like chconfig). > > HP-UX : > > /sbin/init.d/script start_msg|stop_msg|start|stop (FMPOV, there isn't not > enough possible choises, such as status, restart, config, command, etc.) > /sbin/rc[S0-5].d/[SK][0-9][0-9][0-9]script linked to /sbin/init.d/script ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is confusing and difficult ot manage. > /sbin/rc (+ /sbin/rc.util) sources /etc/rc.config then runs /sbin/rc?.d > startup files > /etc/rc.config.d/services are configuration files (ala bourne shell). Non-centralized configuration is frowned upon. Having to find which file has something, or having to read through multiple files to understand how the system is configured is a disadvantage wrt to the present system. > /sbin/rc.config sources /etc/rc.config.d configuration files. > /usr/sbin/ch_rc is not so easy to use to modify /etc/rc.config.d/services. > > IRIX : oops, don't remember how works startup scripts. I just remember me > configurations files : > > /sbin/chconfig [on|off] service or something like that. > (don't remember if it's possible to change options through chconfig, > but I guess no). > /etc/config/services enable or disable services. > /etc/config/services.options just contains arguments to services. > > so, a mix of both w/o the levels stuffs + a /etc/rc.default.d (a synonym > to /etc/defaults/rc.conf but in separate files between HP-UX and IRIX > configuration files) would be a begining. It would be a waste of time. Without the levels, we are gaining nothing, and we loose in additional useless complexity. Alas, "levels" is a half-assed solution, because the states in which a system can be in are in a graph. The above proposal doesn't have an ink of a chance. Please, read Eivind's page, and read the numerous previous post on this topic. > > and my favorite substitute proposal: > > > > http://www.roguetrader.com/~brandon/sas/. > > effectively, the last one is interresting. a major problem w/ this one is the > use of "perl" which is not available a boot time since it is located in /usr. I'm sure it can be easily done as a C program. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.great.underground.bsdconpiracy.org _DES: The Book of Bruce has only one sentence in it, and it says "the actual directives of my cult are left as an exercise for the reader. Good luck." jkh: does it really include the 'good luck' part? EE: OK, I made that part up. EE: I figured it should sound a bit more cheery than how Bruce initially dictated it to me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message