Subject: RE: Thanks NetBSD [Was Re: Debian redefines itself]
To: None <netbsd-users@netbsd.org>
From: Michael D. Spence <spence@panix.com>
List: netbsd-users
Date: 04/22/2007 20:44:18
> -----Original Message-----
> From: netbsd-users-owner@NetBSD.org 
> [mailto:netbsd-users-owner@NetBSD.org] On Behalf Of Douglas 
> Allan Tutty
> Sent: Sunday, April 22, 2007 7:16 PM
> To: netbsd-users@NetBSD.org
> Subject: Re: Thanks NetBSD [Was Re: Debian redefines itself]
> 
> 
> On Sun, Apr 22, 2007 at 07:02:19PM -0400, Steven M. Bellovin wrote:
> > On Sun, 22 Apr 2007 18:03:50 -0400
> > Douglas Allan Tutty <dtutty@porchlight.ca> wrote:
>  > 
> > > What isn't clear is what order things happen in the rc 
> system.  For
> > > example, if I'm (or advising someone on) tracking down a problem
> > > related to a service in Debian, I can start in single 
> user mode and
> > > go down the rcS.d links one at a time with the param 'start'.
> > > Similar if 'something' is doing 'something', I can suggest they go
> > > through the rc6.d links one at a time until the 
> 'something' stops.  I
> > > wouldn't yet know how to do that with the rc system.
> > > 
> > 
> > rc.d files have REQUIRES and PROVIDE lines; these form a partial
> > ordering.  A command called rcorder turns those into a linear order.
> > See /etc/rc -- it's invoked by init, and starts everything else.
> > 
> 
> Before you tell me, yes I have read the rc-related man pages.
> 
> Right, but the rcorder process seems to me more complex than sysVinit.
> As you say, the REQUIRES and PROVIDE gives a partial ordering but
> there's nowhere that I can just look to see in what order 
> things happen
> the way I can just e.g. ls rc2.d
> 

Doesn't this do what you want?

pentium166:/etc 12 -> rcorder /etc/rc.d/*
/etc/rc.d/raidframe
/etc/rc.d/ccd
/etc/rc.d/swap1
/etc/rc.d/fsck
/etc/rc.d/root
/etc/rc.d/mountcritlocal
/etc/rc.d/ttys
/etc/rc.d/bootconf.sh
/etc/rc.d/lkm1
/etc/rc.d/ipsec
/etc/rc.d/ipfilter
/etc/rc.d/sysctl
/etc/rc.d/network
/etc/rc.d/dhclient
/etc/rc.d/altqd
/etc/rc.d/NETWORKING
/etc/rc.d/mountcritremote
/etc/rc.d/sysdb
/etc/rc.d/newsyslog
/etc/rc.d/wscons
/etc/rc.d/syslogd
/etc/rc.d/ppp
/etc/rc.d/ipmon
/etc/rc.d/isdnd
/etc/rc.d/kdc
/etc/rc.d/racoon
/etc/rc.d/savecore
/etc/rc.d/SERVERS
/etc/rc.d/named
/etc/rc.d/ntpdate
/etc/rc.d/rpcbind
/etc/rc.d/ypserv
/etc/rc.d/ypbind
/etc/rc.d/yppasswdd
/etc/rc.d/lkm2
/etc/rc.d/mountall
/etc/rc.d/cleartmp
/etc/rc.d/xfs
/etc/rc.d/accounting
/etc/rc.d/amd
/etc/rc.d/dmesg
/etc/rc.d/ipnat
/etc/rc.d/ldconfig
/etc/rc.d/lkm3
/etc/rc.d/quota
/etc/rc.d/mountd
/etc/rc.d/nfsd
/etc/rc.d/nfslocking
/etc/rc.d/pwcheck
/etc/rc.d/securelevel
/etc/rc.d/swap2
/etc/rc.d/virecover
/etc/rc.d/DAEMON
/etc/rc.d/apmd
/etc/rc.d/bootparams
/etc/rc.d/dhcpd
/etc/rc.d/dhcrelay
/etc/rc.d/local
/etc/rc.d/lpd
/etc/rc.d/mopd
/etc/rc.d/motd
/etc/rc.d/mrouted
/etc/rc.d/ntpd
/etc/rc.d/rarpd
/etc/rc.d/rbootd
/etc/rc.d/route6d
/etc/rc.d/routed
/etc/rc.d/rtadvd
/etc/rc.d/rtsold
/etc/rc.d/rwho
/etc/rc.d/screenblank
/etc/rc.d/timed
/etc/rc.d/LOGIN
/etc/rc.d/xdm
/etc/rc.d/sshd
/etc/rc.d/sendmail
/etc/rc.d/samba
/etc/rc.d/postfix
/etc/rc.d/poffd
/etc/rc.d/ndbootd
/etc/rc.d/moused
/etc/rc.d/ipfs
/etc/rc.d/inetd
/etc/rc.d/ifwatchd
/etc/rc.d/downinterfaces
/etc/rc.d/cron
/etc/rc.d/apache
pentium166:/etc 13 -> 


Michael D. Spence
Mockingbird Data Systems, Inc.