I'm not familiar with QNX, but it sounds like you are asking for the
Old Way (tm) -- BSD-style. linux now has the New Way (tm) -- SysV
style. To convert back to the Old Way, simply delete everything from
/etc/rc.d/rc[0-6].d and edit /etc/rc.d/rc.local (and possibly
/etc/rc.d/rc.sysinit) to do your startup script.
Of course, saying the above and actually doing it and surviving to tell
the story are two different matters. I would strongly urge you to
understand and use the SysV style init: it is simpler because the items
being started are much more decoupled and individually limited in size
compared to a huge rc.local script. It also has an orderly shutdown
method, I don't remember how BSD-style inits do an orderly shutdown.
SysV-style init is actually quite simple.
/etc/inittab defines the run levels and what to start at the different
run levels
/etc/rc.d/init.d has all the start/stop scripts for the individual
subsystems
/etc/rc[0-6].d has symlinks to /etc/rc.d/init.d with names:
S[0-9][0-9]whatever to start subsystem "whatever"
K[0-9][0-9]whatever to stop subsystem "whatever"
The startup sequence relies on the fact that unix's directory listing
is sorted: the startup/shutdown scripts are called in the a sorted
order (as an aside, the S and K are the only parts of the name that are
critical, the numbers are simply a convenient way to set up the
ordering). When you change runleve (e.g. go to runlevel 0 to shut
down), all the "K" scripts of the current level are called and then all
the "S" scripts of the new level are called (on shutdown, that is
probably not much -- runlevel 1 would be a more interesting example --
going to single user mode).
gvb
At 05:03 PM 10/28/99 -0400, Robert Findlay wrote:
>We are currently struggling through Linux's convoluted startup and
shutdown
>sequencing for one of our embedded projects.
>
>We long for something like exists in the QNX OS. There all the startup
>info is contained in a single script. While this maybe less flexible
than
>the current Linux scheme, it is much better suited to an embedded system.
>
>Is there any good documentation online regarding this? Are there any open
>source projects which are aimed at producing a QNX style startup and
>shutdown sequence? If not would there be any interest in starting one
up?
>Robert D. Findlay
>Senior Software Engineer
>FC software Inc.
>Tel: (905)659-0512
>email: [EMAIL PROTECTED] Web: www.netcom.ca/~fcsoft
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.