[BusyBox] ctrl-c exits kills init:getty - Problem with syslogd perhaps?
Brian T.
btuch at usa.net
Mon Apr 28 20:42:18 UTC 2003
As a test I made an empty script /sbin/test and added it to /etc/inittab :
::sysinit:/bin/sh /etc/rc
::once:/sbin/test
::respawn:/sbin/syslogd -n
::respawn:/sbin/klogd -n
::respawn:/bin/inetd
ttyS0::respawn:/bin/getty 9600 -
#ttyS0::respawn:/bin/getty 19200 -
#ttyS0::respawn:/bin/getty 38400 -
#ttyS0::respawn:/bin/getty 57600 -
#ttyS0::respawn:/bin/getty 115200 -
#Below is for Modem Login
#ttyS3::respawn:/bin/mgetty -x 0 -s 57600 -i /etc/issue /dev/ttyS3
and now syslogd runs correctly with no controlling TTY listed. Is it
possible that when init goes through the inittab list it is not reading the
file correctly? If I take the /sbin/test line out (or comment it out), then
syslogd is started with a controlling TTY again, which causes ctrl-c and
other characters to either log console out, or lock up the terminal when
attempting to exit out of a constant ping.
> I think I found out why ctrl-c logs me out of the console, and no other
ctrl
> keys work. It looks like syslogd is being givin the same controlling
ttyS0
> as the console. If I reboot the unit and log in through the console, and
> then unplug the console cable and log back in everything is fine (syslogd
is
> no longer controlled by ttyS0). Below is a list of processes, and the
> contents of my /etc/inittab. Was there a change between 60.0 and 60.5 in
> the way that syslogd should be started? Or is this possibly a bug?
>
> Thanks,
>
> -Brian
>
>
> [root at JBMgateway-v50 root]# cat /etc/inittab
> ::sysinit:/bin/sh /etc/rc
> ::respawn:/sbin/syslogd -n
> ::respawn:/sbin/klogd -n
> ::respawn:/bin/inetd
> ttyS0::respawn:/bin/getty 9600 -
> #ttyS0::respawn:/bin/getty 19200 -
> #ttyS0::respawn:/bin/getty 38400 -
> #ttyS0::respawn:/bin/getty 57600 -
> #ttyS0::respawn:/bin/getty 115200 -
> #Below is for Modem Login
> #ttyS3::respawn:/bin/mgetty -x 0 -s 57600 -i /etc/issue /dev/ttyS3
> [root at JBMgateway-v50 root]#
> [root at JBMgateway-v50 root]# ps -ax
> PID TTY STAT TIME COMMAND
> 1 ? S 0:04 init
> 2 ? SW 0:00 [keventd]
> 3 ? SWN 0:00 [ksoftirqd_CPU0]
> 4 ? SW 0:00 [kswapd]
> 5 ? SW 0:00 [bdflush]
> 6 ? SW 0:00 [kupdated]
> 7 ? SW 0:00 [mtdblockd]
> 13 ? SWN 0:01 [jffs2_gcd_mtd1]
> 28 ? S 0:00 /bin/cron
> 39 ? SW 0:00 [eth0]
> 49 ? S 0:00 /sbin/klogd -n
> 50 ? S 0:00 /bin/inetd
> 54 ? S 0:03 /bin/sshd
> 58 ttyS0 S 0:00 /sbin/syslogd -n
> 59 ? S 0:00 -sh
> 60 ? R 0:00 ps -ax
>
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
>
More information about the busybox
mailing list