Matthew Melvin wrote:
> 
> On Wed, 6 Dec 2000, Cokey de Percin wrote:
> 
> > Matthew Melvin wrote:
> >
> > Well, I'm using a serial terminal and I don't have a problem getting
> > in Single, but my setup looks like this:
> >
> > S0:12345:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS0 ttyS0 DT9600 vt100
> >    ^
> > Note the '1'...  I believe you need this set connection spawned in run
> > level 1.
> >
> 
> Hmmm... I tried this but I still get the same thing.. a "bash#" prompt that
> looks fun that does nothing.  But this is kind of what I would expect.  The
> last thing run level 1 does is switch to runlevel S so my getty goes away
> anyway.
> 
> Initializing random number generator [  OK  ]
> Telling INIT to go to single user mode.
> INIT: Going single user
> INIT: Sending processes the TERM signal
> getty[161]: exiting on TERM signal
> INIT: Sending processes the KILL signal
> bash#
> 
> This is if I go switch to runlevel 1 from multiuser or start up in runlevel
> 1.  If i go straight to runlevel S it behaves as before.  Again what I'd
> expect becuase the 1 entry never comes into play.
> 
> Anyway - all of that aside I don't have any trouble running getty in single
> user mode (using the inittab entries from my previous email) I just don't
> see that as being desirable.  If the system's sufficently toast that I need
> to be in S then I don't want to have rely on login working and root's
> account being functional.
>

Well, that's the only I've been able to get mine to work.  Even in single
mode, getty's running.  

> 
> I tried it boths ways but are getty and uugetty functionally different in
> anyway?  What's in your /etc/conf.uugetty.ttyS0 - could that be relevent?
> Stopping getty from dieing on TERM maybe or perhaps starting a shell itself
> instead of prompting for a username and then starting login?
> 
> M.
> 

Ok, lets see...  I do have my 1st (the serial) terminal set early in the
inittab:

--------------------------------------------------------------------------

# 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)
#
id:3:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

# Open a getty device here in case of problems   <-------------here
1:2345:respawn:/sbin/mingetty tty1

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3                                        
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Things to run in every runlevel.
ud::once:/sbin/update

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
#pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
#pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
#1:2345:respawn:/sbin/mingetty tty1
#2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6

# Set port for uugetty in runlevels 1,2,3,4 and 5
S0:12345:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS0 ttyS0 DT9600 vt100
#S1:345:respawn:/sbin/uugetty -d  /etc/conf.uugetty.ttyS1 ttyS1 F38400 vt100

# Byte Runner ports - must start at port 16
# used by the modem
#S2:345:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS16 ttyS16 F115200 vt100
# used by the UPS
#S3:345:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS17 ttyS17 DT2400
S4:345:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS18 ttyS18 F38400 vt100
S5:345:respawn:/sbin/uugetty -d /etc/conf.uugetty.ttyS19 ttyS19 F38400 vt100

# xdm is now a separate service
#x:5:respawn:/etc/X11/prefdm
-nodaemon                                                            

-----------------------------------------------------------------------------

My conf.uugetty.ttyS0 looks like this:

-----------------------------------------------------------------------------

#
# getty configuration file for a dumb terminal
#
# timeout to disconnect if idle...
TIMEOUT=60
# wait for a carraige return before trying to display the /etc/issue
WAITFOR=\r                                        

-----------------------------------------------------------------------------

Hope this helps

Cokey

-- 
------------------------------------------------------------------
Cokey de Percin, DBA            Email:
Mynd Corp. (Soon to be CSC)      Work - [EMAIL PROTECTED]
Columbia, South Carolina         Home - [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to