[svlug] inittab & rc

Seth David Schoen schoen at loyalty.org
Sat Jan 31 19:42:47 PST 2015


Scott DuBois writes:

> inittab has the following lines representing the runlevel scripts right?
> 
> l0:0:wait:/etc/init.d/rc 0
> l1:1:wait:/etc/init.d/rc 1
> l2:2:wait:/etc/init.d/rc 2
> l3:3:wait:/etc/init.d/rc 3
> l4:4:wait:/etc/init.d/rc 4
> l5:5:wait:/etc/init.d/rc 5
> l6:6:wait:/etc/init.d/rc 6
> 
> But since init.d only has _one_ rc file (other than rcS), what does the last number mean?

It's a command-line argument provided to the rc script as its argv[1]
(or from the shell script's point of view, $1).

-- 
Seth David Schoen <schoen at loyalty.org>      |  No haiku patents
     http://www.loyalty.org/~schoen/        |  means I've no incentive to
  FD9A6AA28193A9F03D4BF4ADC11B36DC9C7DD150  |        -- Don Marti



More information about the svlug mailing list