I'm getting the following errors every 10-30 seconds on a virtual Red Hat Enterprise Linux 6.5 2 Server
on Amazons EC2
.
Sep 23 09:57:05 ServerName init: ttyS0 (/dev/ttyS0) main process (1612) terminated with status 1
Sep 23 09:57:05 ServerName init: ttyS0 (/dev/ttyS0) main process ended, respawning
Sep 23 09:57:05 ServerName agetty[1613]: /dev/ttyS0: tcgetattr: Input/output error
Does anyone know what is causing this and how I could go about fixing it?
Thanks.
Best Answer
A virtual Red Hat installation probably doesn't have any serial ports connected (which is what /dev/ttyS0 is: COM1 in DOS parlance), so trying to start agetty to listen to the serial port is doomed to fail. Find the line in /etc/inittab that contains agetty and ttyS0 and change
respawn
tooff
.EDIT: In case the system is using upstart, as in redhat 6, do
to stop the service now, and do
to prevent starting the service after a reboot according to https://askubuntu.com/a/468250/146273
For documentation purposes, you might also consider doing:
Further reading: http://upstart.ubuntu.com/cookbook/#disabling-a-job-from-automatically-starting