[H-GEN] Re: [H-CHAT] Re: init scripts

Andrae Muys A.Muys at mailbox.uq.edu.au
Thu Jul 31 20:20:12 EDT 1997


On Thu, 31 Jul 1997, Anthony Towns wrote:
> I'm not entirely sure if I see why you'd want this. I'm guessing it's
> so that you could have different networking runlevels, perhaps:
> 	0-1 : no networking
> 	2   : local ethernet networking only
> 	3   : two net cards, one acting as a router
> 	4   : local networking, with routing via PPP
> 
> I think I'd rather separate all of these into three logical areas:
> 	net_eth0 : local ethernet, 192.168.105.0
> 	net_eth1 : routing via second netcard
> 	net_ppp  : routing and dialup via PPP
> 
This is the basic idea behind SysVinit.  You decide what each runlevel is
for.  Then you work out what services are required for that runlevel.
Then you provide S links for all the services you want, and K links for
those you don't.  IIRC aren't the variables 'runlevel' and 'previous'
defined in /etc/rcd/rc?  So you should be able to use them if you need to.

> and add files named appropriately to /etc/init.d (Debain skips the
> "/etc/rc.d" directory for no apparent reason) and the appropriate
> links to the appropriate runlevels, so you could still just say "init
> 4" to get PPP up and running, if that's what you wanted.
> 
Well as SysVinit traditionally didn't have an rc.d directory but just
left everything that's in there under RedHat, under /etc.  Personally I
find the move to rc.d an improvement.  (IIRC /etc/sysconfig dosn't
traditionally exist either).

> (any reason why this is on H-CHAT rather'n H-GEN?)

Because that's the reply-to:?

Andrae Muys

----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list