TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:20740] Magic runlevels



Callum Lerwick said:
> Naw, its no buisness of the kernel. Its an init thing. If you wanted to
> change runlevels around, I don't think init would have a problem with
> it.

So there's something in a config file that says, "When you switch to
runlevel X, shut the system down"?  I don't see anything that looks like
it might have that function in either /etc/inttab or /etc/rc0.d; where would
it be?  (And, again, I'm specifically curious about whether this could be
done by editing config files.  Touching the source (or editing the compiled
binary) is cheating...)

> But note that shutdown/reboot/halt are hardcoded to runlevels 0,1,6,
> you ought to be able to recompile the source to change that...

I suspected as much.

-- 
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L+++>++++ E- W--(++) N+ o+
!K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r++ y+