From owner-freebsd-hackers Thu Aug 14 05:54:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA15461 for hackers-outgoing; Thu, 14 Aug 1997 05:54:37 -0700 (PDT) Received: from papagaio.voga.com.br (papagaio.voga.com.br [200.239.39.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id FAA15453 for ; Thu, 14 Aug 1997 05:54:21 -0700 (PDT) Received: by papagaio.voga.com.br(Lotus SMTP MTA v1.06 (346.7 3-18-1997)) id 032564F3.00473618 ; Thu, 14 Aug 1997 09:57:49 -0300 X-Lotus-FromDomain: VOGA From: "Daniel Sobral" To: hackers@freebsd.org cc: dcs@gns.com.br Message-ID: <032564F3.00442A2C.00@papagaio.voga.com.br> Date: Thu, 14 Aug 1997 09:54:08 -0300 Subject: Weird idea: rcfs Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I was reading some stuff about S and K files, AIX rc, etc, etc, etc, when I had this weird idea. Now, while I *hate* SysV way, and I strongly oppose those who want that crap brought to our beloved OS, starting and terminating services, and defining sets of service (personally, I think non-deterministic automata "state" definition is appropriate, but I digress) _is_ useful. So, I was just thinking... Why not an rc filesystem? The idea is still not fully formed, but I'm thinking of two distinct parts. One to store configuration, and the other more akin to procfs. The configuration storing could probably be dismissed, but it may be interesting to hide the awful amount of symbolic links some other OS have... :-) For example (and notice that, in this example I use "state" as in "status quo"): /etc/rc.d Base directory /etc/rc.d/config Configuration part /etc/rc.d/config/services Services configuration directory /etc/rc.d/config/services/network Basic network configuration directory /etc/rc.d/config/services/sendmail Sendmail configuration directory /etc/rc.d/config/services/sendmail/depend Dependencies directory /etc/rc.d/config/services/sendmail/depend/network Well, not really, just an example... /etc/rc.d/config/services/sendmail/coreq Co-requisites configuration directory /etc/rc.d/config/states States configuration directory /etc/rc.d/config/states/homedocked Homedocked state configuration directory /etc/rc.d/config/states/homedocked/depend Etc... The procfs-like would be used to indicate services running, their state, etc. Probably undoable, though. Well, we *could* have it with full state information for compliant (i.e., modified to use rcfs) servers, and stay with the amount of information we (don't) have right now for the rest. The idea right now seems full of flaws, but it _seems_ to have potential. But then, I'm love special fs...