在我的linux嵌入式设备中,我以以下方式运行prngd:
prngd /var/run/egd-pool
在系统日志中,我得到了以下错误:
192.168.8.195.34453:<29>Jan 1 00:04:49 prngd[132]: prngd 0.9.29 (12 Jul 2004) started up for user root
192.168.8.195.34453:<29>Jan 1 00:04:49 prngd[132]: have 7 out of 1024 filedescriptors open
192.168.8.195.34453:<25>Jan 1 00:04:50 prngd[147]: Failed to execl(/usr/bin/w, w, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:50 prngd[149]: Failed to execl(/usr/bin/last, last, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:50 prngd[150]: Failed to execl(/usr/bin/lastlog, lastlog, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:50 prngd[153]: Failed to execl(/usr/bin/vmstat, vmstat, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:50 prngd[155]: Failed to execl(/usr/bin/ipcs, ipcs, -a, , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:51 prngd[173]: Failed to execl(/usr/bin/w, w, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:51 prngd[175]: Failed to execl(/usr/bin/last, last, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:51 prngd[176]: Failed to execl(/usr/bin/lastlog, lastlog, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:51 prngd[179]: Failed to execl(/usr/bin/vmstat, vmstat, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:04:51 prngd[181]: Failed to execl(/usr/bin/ipcs, ipcs, -a, , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:19:42 prngd[220]: Failed to execl(/usr/bin/w, w, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:21:25 prngd[222]: Failed to execl(/usr/bin/last, last, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:22:16 prngd[224]: Failed to execl(/usr/bin/lastlog, lastlog, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:24:49 prngd[227]: Failed to execl(/usr/bin/vmstat, vmstat, , , , ): No such file or directory
192.168.8.195.34453:<25>Jan 1 00:26:31 prngd[229]: Failed to execl(/usr/bin/ipcs, ipcs, -a, , , ): No such file or directory
有没有办法理解为什么prngd会给我这样的错误?谢谢
调查后,会生成这些错误,因为在prngd配置文件(/etc/prngd.conf(中,这些文件用于生成熵。很明显,如果这些文件不在设备上,prngd就会产生问题。要解决此问题,只需注释与丢失文件相关的行即可。