2012-07-19 125 views
0

在Centos 6.2上,试图让内核日志重定向到串行控制台,我遇到了agetty似乎每隔几次按键都会重新生成的问题。agetty日志文件位置

也就是说,我在输入(登录后)中间得到登录提示。

为了进一步调查问题,我正在寻找agetty日志的位置,但无济于事。在哪里以及如何查看重新生成的agetty进程的日志消息?

+0

对于[Unix&Linux](http://unix.stackexchange.com/)上的这个问题,你可能会得到更好的回答,因为它更像是他们的宿舍,尽管现在有了这个赏金,所有的移动都是尴尬的。 – blahdiblah 2012-07-28 00:21:49

回答

2

了 “的agetty” 的 “诊断” 部分中的命令manpage状态:

Depending on how the program was configured, all diagnostics are written to 
the console device or reported via the syslog(3) facility. Error messages are 
produced if the port argument does not specify a terminal device; if there is 
no utmp entry for the current process (System V only); and so on. 

默认syslog设备中写入 “在/ var/log/messages文件” 的文件,但它可以被配置为写另一个文件由editing its configuration file“/etc/syslog.conf”。

最后,如果你得到的错误是“respawning too fast”,你应该检查你的“/ etc/inittab”文件,如here所述。

+0

我没有收到“重生太快”的消息。我会检查出/ var/log/messages的线索,谢谢。 – Ovesh 2012-07-30 01:29:40