dkg Posted July 21, 2019 Report Share Posted July 21, 2019 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 More sharing options...
bcowan Posted July 21, 2019 Report Share Posted July 21, 2019 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 dkg and drobbins 2 Link to comment Share on other sites More sharing options...
dkg Posted July 21, 2019 Author Report Share Posted July 21, 2019 Perfect, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts