Jump to content
Forums in Read-Only Mode - Please use Reddit ×

agetty log spam


dkg

Recommended Posts

I'm getting spam in my logs in my container from agetty like this:

Jul 21 00:19:58 dkg agetty[5782]: /dev/tty1: cannot open as standard input: No such file or directory                                                                                  
Jul 21 00:19:58 dkg agetty[5784]: /dev/tty3: cannot open as standard input: No such file or directory                                                                                  
Jul 21 00:19:58 dkg agetty[5786]: /dev/tty5: cannot open as standard input: No such file or directory                                                                                  
Jul 21 00:19:58 dkg agetty[5787]: /dev/tty6: cannot open as standard input: No such file or directory                                                                                  
Jul 21 00:19:58 dkg agetty[5783]: /dev/tty2: cannot open as standard input: No such file or directory                                                                                  
Jul 21 00:19:58 dkg agetty[5785]: /dev/tty4: cannot open as standard input: No such file or directory

Which is true, those devices do not exist.  And it makes sense that a container isn't going to have all these ttys, either.  I just don't know how to tell it not to look for them.

Thanks.

Link to comment
Share on other sites

need to edit /etc/inittab and make sure the lines

# TERMINALS
#x1:12345:respawn:/sbin/agetty 38400 console linux
#c1:12345:respawn:/sbin/agetty 38400 tty1 linux
#c2:2345:respawn:/sbin/agetty 38400 tty2 linux
#c3:2345:respawn:/sbin/agetty 38400 tty3 linux
#c4:2345:respawn:/sbin/agetty 38400 tty4 linux
#c5:2345:respawn:/sbin/agetty 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty 38400 tty6 linux


are commented/REM'd like the above

Link to comment
Share on other sites

×
×
  • Create New...