: Getty not respawning properly

: Getty not respawning properly

Post by Robert Bau » Mon, 30 Aug 1993 07:18:21



My system (0.99p12 alpha, essentially a "stock" Slackware 1.01),
seems to be having some trouble respawning serial line getty's.
Below is the relevant portion of /etc/inittab.

c1:123456:respawn:/etc/getty 38400 tty1
c2:23456:respawn:/etc/getty 38400 tty2
c3:3456:respawn:/etc/getty 38400 tty3
c4:6:respawn:/etc/getty 2400 ttyS1

When the system is booted, getty is run on all four of the above
ttys with no problem.  If I kill one of the first three, which are
running on the VC's, it will be respawned as though nothing happened,
except for having a new PID.

If I kill the last one, running on the second serial port (a modem),
it is also respawned, but in such a way that it no longer has a
controlling terminal.  This is illustrated below.  I am pretty sure
my modem is configured properly; 'AT S0=1 E0 Q1' is the power-up
default setting.

Here is an example.  Portions of the output from 'ps' were deleted
to save space.
--

# ps aux

USER    PID %CPU %MEM SIZE  RSS TT STAT START   TIME COMMAND
root      1  0.0  6.5   44  204  ? S    14:47   0:00 init
root     30  0.0  6.2   52  192  2 S    14:48   0:00 /etc/getty 38400 tty2
root     31  0.0  6.2   52  192  3 S    14:48   0:00 /etc/getty 38400 tty3
root     32  0.0  5.8   52  180 S1 S    14:48   0:00 /etc/getty 2400 ttyS1
root     85  0.0  7.1   64  220  1 R    14:57   0:00 ps aux

# kill 32
# ps aux

USER    PID %CPU %MEM SIZE  RSS TT STAT START   TIME COMMAND
root      1  0.0  6.5   44  204  ? S    14:47   0:00 init
root     30  0.0  6.2   52  192  2 S    14:48   0:00 /etc/getty 38400 tty2
root     31  0.0  6.2   52  192  3 S    14:48   0:00 /etc/getty 38400 tty3
root     34  0.0  5.8   52  180  ? S    14:57   0:00 /etc/getty 2400 ttyS1
root     87  0.0  7.1   64  220  1 R    14:57   0:00 ps aux

--
(Note the 'TT' column for getty on ttyS1.)

My suspicion lies with init, but I have no idea where to go from
here.  Has anyone else run into this problem?  Thanks in advance
for the help.

Robert

 
 
 

1. Getty not respawning on logout

To all those who repsonded to my earlier postings, thanks.
However, I still have not fixed the problem.
To summarise the problem.
I have slackware 1.2.0
A friend is logging in directly vis serial lead (no modem, SLIP, etc..) from
an MS-DOS box using kermit.
When he logs out the getty does not respawn
The getty is defined in /etc/inittab as:
s2:45:respawn:/sbin/getty ttyS1 DT38400 vt100
If I run 'init q' when the getty dies, then it reruns for about 15 seconds,
then dies again.
Can anyone help?
Thanks,

--

2. rpm's and slackware

3. /etc/init does not respawn getty

4. 2Mx32 60ns $34.00

5. Getty not respawning reliably on ttyS2

6. Make $$ LINUX BUCKS $$ Sell Linux products from your webpage

7. agetty not respawning properly

8. Where did the kde1.0 type themes go?? And where are the requirement specs??

9. ?Solaris 2.5.1 ttymon (getty) not handling hangup properly

10. getty won't always respawn...HELP!

11. help with getty, respawn & serial stuff

12. Init & getty respawn too fast

13. getty won't always respawn...HELP!