Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 1997 20:28:19 -0600 (MDT)
From:      Brandon Gillespie <brandon@roguetrader.com>
To:        freebsd-hackers@freefall.FreeBSD.org
Subject:   multiple run-levels (was: Re: /etc/init.d/)
Message-ID:  <Pine.BSF.3.96.970714202216.13284C-100000@roguetrader.com>
In-Reply-To: <33CA3780.389F@cki.ipri.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
As Terry mentioned, the concept of run-levels is sound, its just that the
SysV implementation where '1' is single user and '2' can be something else
and '3' is sometimes network level, etc, SUCKS

Frankly, abstraction by simply using tokens instead of digits would be a
simple solution to allow a standard as well as an easy means to extend
without confusing things.  For instance, it could ship with:

    SYSV  FreeBSD
    1     singleuser     -- Single User Mode
    2     multiuser      -- Multi User Mode
    3     network        -- generic "Network" mode

The SYSV is listed simply for comparison.  With this, simply give a
startup/shutdown capability for each run-level, and you are set.
Perhaps create a RUNLEVEL/select script which returns 0 when this level
should be run, and a 1 when it shouldn't be run--the select could decide
these things based off the hardware situation or current run-level.  This
way joe-wiz could have 30 different run levels with hardware based
changing, etc.

Just a thought..

-Brandon Gillespie




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970714202216.13284C-100000>