我的服务器的/ var / log / messages带有“ init:initLogger主进程(608798)以状态1终止”错误。 我研究了该错误,并遵循以下步骤:
下面是我的serial.conf / inittab / tty.conf:
$ cat /etc/init/serial.conf
start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345]
stop on runlevel [S016]
instance $DEV
respawn
pre-start exec /sbin/securetty $DEV
exec /sbin/agetty /dev/$DEV $SPEED vt100-nav
post-stop exec /sbin/initctl emit --no-wait fedora.serial-console-available DEV=$DEV SPEED=$SPEED
usage 'DEV=ttySX SPEED=Y - where X is console id and Y is baud rate'
$ cat /etc/inittab
id:4:initdefault:
$ cat /etc/init/tty.conf
stop on runlevel [S016]
respawn
instance $TTY
exec /sbin/mingetty $TTY
usage 'tty TTY=/dev/ttyX - where X is console id'
$ ps -ef | grep agetty
root 609065 1 0 20:19 ttyS0 00:00:00 /sbin/agetty /dev/ttyS0 115200 vt100-nav
admusr 609241 608554 0 20:20 pts/0 00:00:00 grep agetty
# initctl status serial DEV=ttys0
initctl: Unknown instance: ttys0
# initctl stop serial DEV=ttys0
initctl: Unknown instance: ttys0
# grep ttyS0 /etc/securetty
ttyS0
有人可以建议解决此问题吗?