[NTLUG:Discuss] RH 8.0 Crontab problem fixed by full system reinstall!

Darin W. Smith darin_ext at darinsmith.net
Sat May 17 21:48:49 CDT 2003


On Fri, 2003-05-16 at 18:06, jay linux wrote:

> > >From my user shell su
> >shutdown now
> >successfully went to single user mode
> >init 1 - this worked
> >init 2 - this worked
> >init 7 - When I did this I got a GUI and log in prompt. I logged in but the 
> >screen went blue and
> >never came back. Must be a bug in the init program, etc
> 

init 7???

Yowza, I don't know what that would do.

Looking at my /etc/inittab I see 0 through 6 defined as:
# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have
networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#

There isn't even a runlevel 7 defined in my inittab.  Nor do I have an
/etc/rc.d/rc7.d

man init says runlevel can be one of eight values: 0-6, s, or S

It doesn't just error out on 7-9 because it goes on to say:
"Runlevels  7-9  are  also  valid,  though  not  really documented. This
is because "traditional" Unix variants don't use them.  In case you're 
curious,  runlevels S and s are in fact the same.  Internally they are
aliases for the same runlevel."

So init is behaving as documented.  It's just that without anything
valid for them to do, there's no telling what you're going to get.

I actually say "telinit" to switch runlevels, even though it is just
linked to init and either way is valid.  Just an old habit I picked up
from old Sun's.  Some *nixes might run their init command differently
depending on whether it was called as init or telinit.  Specifically,
telinit is supposed to direct the original init command to take an
action to go to the desired runlevel.  Modern implementations of init
understand "the right thing" to do with either syntax, but I use the
older one just in case I happen to be on some machine that sees things
more strictly.

-- 
D!  (Darin W. Smith)              For want of a nail, the shoe was lost;
AIM: JediGrover                   For want of the shoe, the horse was
lost;
Gig 'em Ags!                      For want of the horse, the rider was
lost;
                                  For want of the rider, the battle was
lost;
				  For want of the battle, the kingdom was lost;
				  And all for the want of a nail.
Don't understand geek?  Try: http://www.ebb.org/ungeek/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/E 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+
------END GEEK CODE BLOCK------




More information about the Discuss mailing list