My server has /var/log/messages
with
'init: initLogger main process (608798)
terminated with status 1' errors. I researched about the error and also followed the steps from stackexchange :
157059/error-init-ttys0-dev-ttys0-main-process-1612-terminated-with-status-1]linux - ERROR: init: ttyS0 (/dev/ttyS0) main process (1612) terminated with status 1
Below is my 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
Could someone please suggest to fix the issue?