From: Vince Skahan (vince@victrola.sea.wa.us)
Date: 05/07/93


From: vince@victrola.sea.wa.us (Vince Skahan)
Subject: Re: PROPOSAL: ways out of the jungle ;-)
Date: 7 May 1993 23:36:56 GMT

bcr@bohr.physics.purdue.edu (Bill C. Riemers) writes:

>If you ever used an apollo computer, you'll find they leave all other
>unix machines behind in terms of user friendlyness. So naturally they
>already thought of this idea. I've been using this since day one. Just
>for convience though, I suggest we follow there example which means
>instead of /etc/config we should use:

>/user_data : for system configuration
>~/user_data : for user configuration

no....you must not have used apollos much. :-)

it's /sys/node_data for node-specific stuff
(including /sys/node_data/etc for files normally in /etc that
        might be different on disked nodes and diskless nodes
        partnered off of them).

user_data is basically apollo display-manager-specific config
files (startup files, etc.) that normally are in .login (and so on)
under unix.(with some exceptions).

The real thing that Apollos do nicely is make it easy to define
what daemons start how. They have a /etc/daemons directory in which
you 'touch' a file with the name of the daemon you want started...
and then if that file is there, and the binary is there, the binary
gets started as part of boot up.

Bottom line ==> you almost NEVER need to edit your /etc/rc* files :-)
It should certainly be possible for a canned distribution like SLS
to do something like the following in order to define all the correct
daemons that COULD run in the correct manner and have a definitive
startup file with virtually zero edits required.

For example, here's some of my /etc/rc.local....note that in each
case I've added the code to look for the 'stub' file in /etc/daemons
rather than commenting/uncommenting things in there. Also, it makes
it simpler to add packages...they can just append 'stuff to start'
to the right rc* file and as long as the /etc/daemons/<daemonname>
file isn't there, the startup doesn't change...

        if [ -x /etc/rc.net -a -f /etc/daemons/rc.net ]; then
                echo "...calling rc.net..."
                /bin/hostname `cat /etc/host`
                /etc/rc.net
                (sleep 2; # wait for daemons to get a foothold
                mount -av -t nfs)&
        else
                /bin/hostname softland
        fi

        if [ -x /etc/clock -a -f /etc/daemons/clock ]; then
                echo "...clock..."
                /etc/clock -s
        fi

        if [ -x /etc/syslogd -a -f /etc/daemons/syslogd ]; then
                echo "...syslogd..."
                syslogd # turn on logging of su's, logins etc.
        fi

>For a while I was recompiling the commands under Linux to user user_data
>as a default (like on the apollo's) but after a while I decided this was
>to much of a pain...

that's because it's dumb to make a *nix box look like a non-*nix one.
(IMHO)

>Other things that make good links:
> everything in /usr/X386/lib/X11/xinit
> .seyon
> .screen
> .newsrc
> .elm
> .netrc
> .mailrc
> .kermrc
> .logout

why ? I know they're virtually all files in my home.
why link 'em there and move them to a differently named common place ?
there's no sense in doing that as far as I can see.

-- 
     ---------- Vince Skahan --------- vince@victrola.sea.wa.us ----------
                     +++ A Waffle Iron - Linux Division +++
    Linux files via anon. uucp at +1 206 838 7456  user=nuucp pass=nuucp  
                 uucp victrola\!/files/allfiles.txt allfiles.txt