运行 prngd 时出错:无法执行
Error while running prngd: Failed to execl
在我的 linux 嵌入式设备中,我 运行 按以下方式打印:
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 就会产生问题。
要解决此问题,注释与丢失文件相关的行就足够了。
在我的 linux 嵌入式设备中,我 运行 按以下方式打印:
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 就会产生问题。 要解决此问题,注释与丢失文件相关的行就足够了。