>
> > You will then want to create some files:
> > /etc/inittab # chmod 0644
> > /etc/init.d/rcS # chmod 0755
> > /init # chmod 0755; hack because init needs /dev
> >
> > Traditionally, /etc/init.d/rcS ultimately does essentially:
> > for SERVICE in /etc/rc${RUNLEVEL}.d/S*
> > do "$SERVICE" start
> > done
> > for SERVICE in /etc/rc${RUNLEVEL}.d/K*
> > do "$SERVICE" stop
> > done
> >
> > and goes to the next runlevel.
>
> Goes to the next runlevel? I thought the runlevels specified different
> modes the system could run in (single user, server, desktop) and the
> different directories had the various services appropriate to each.
>
> > Of course, $RUNLEVEL is irrelevant in toybox.
>
> If we're going to do svinit we should probably do it right, runlevels
> and all.
>
> That said, I've tabled the whole "init" question until I figure out what
> I want lunchd to do, because sysinit can probably share infrastructure
> with it. (I followed a macosx developer on twitter for a while and
> that's how she labeled sandwich tweets as a pun on macos "launchd", and
> I think it would make a good init name.)
>
> (Also, I'd rather not do the busybox-style "have several shell
> implementations and then a config optinon to specify which one /bin/sh
> points to. If "init" is a command then "behave like svinit" might be a
> config option under that. And it has to be called init because Linux has
> a hardwired list of commands it tries to launch when you don't specify
> init= on the command line.)
>
So while reading up on init, i found this bsd init which doesnt have run
levels https://www.freebsd.org/doc/en/articles/linux-users/startup.html
and i became curious, whats the big deal with run levels anyways? so i see
we have halt, reboot, and what looks like full normal 5. At first i always
assumed the other run levels were like safe mode in windows but after
digging and building i find there isn't any undamaged os repository (image)
for such a safe run level. So i guess my question is, who cares about run
levels if your always going to run 5 reboot 6 and halt 0 ? you can just
have those and be done with it, or is there a usefulness to run levels?
Personally i dont use them. And i suppose there could be a use for booting
your computer with reduced services but honestly why?
(raises hands and prays please don't start flame war)
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net