免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3576 | 回复: 2
打印 上一主题 下一主题

[SCO UNIX] open of pid file failed: No such file or directory [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-10-09 08:56 |只看该作者 |倒序浏览
我的一台scopenserver  5.0.5  一天重起好几次,系统启动时提示一下错误:

Sep  9 07:54:20 pyfx snmpd[351]: Agent started (pid 351)
Sep  9 07:56:35 pyfx ftpd[701]: #2 open of pid file failed: No such file or directory
Sep  9 07:59:19 pyfx ftpd[718]: #2 open of pid file failed: No such file or directory
Sep  9 07:59:45 pyfx ftpd[719]: #2 open of pid file failed: No such file or directory
Sep  9 08:01:04 pyfx ftpd[738]: #2 open of pid file failed: No such file or directory
Sep  9 08:01:54 pyfx ftpd[740]: #2 open of pid file failed: No such file or directory
Sep  9 08:03:18 pyfx ftpd[762]: #2 open of pid file failed: No such file or directory
Sep  9 08:05:10 pyfx ftpd[767]: #2 open of pid file failed: No such file or directory
该怎么解决,谢谢.

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2004-10-09 09:31 |只看该作者

open of pid file failed: No such file or directory

你的这些信息和你的机器频繁重起没有关系
你的/usr/tmp/ftpd目录由于超过7天没有ftp操作导致被系统的自动清理掉了,
临时tmp的清理操作在/etc/default/cleantmp中的TMPDIRS中定义,
没有了/usr/tmp/ftpd目录,每次ftp都会产生一个警告并在syslog日志中记载

解决办法:
1、编辑/usr/lib/cleantmp, 把ftpd目录从自动清理中除外

  1. 找/bin/find $i ! -type p ! -type d -atime +$days -exec /bin/rm -f {} \;那行
  2. 修改为:
  3. /bin/find $i ! -type p ! -type d ! -name ftpd -atime +$days -exec /bin/rm -f
  4. {} \;
  5. 排除的办法是在-type d 和-atime 之间加  ! -name ftpd
复制代码

2、修复/usr/tmp/ftpd目录的符号连接

  1. # scoadmin software manager
  2. 选择SCO OpenServer Enterprise System回车
  3. 选择SCO OpenServer Enterprise System Connectivity回车
  4. 选择SCO TCP/IP回车
  5. 选择TCP/IP Runtime utilities and drivers(不需要回车了啊)

  6. 然后按TAB选首行菜单上的Software ->; Verify Software...
  7. 选择<*>;Broken/missing symbolic links
  8. 选continue ->;  Fix Discrepancies ->; continue ->; OK ->; Done
  9. 退出scoadmin
复制代码

3、把你/usr/adm/syslog里的ftpd警告信息都删了吧,不删也行,你自己知道怎么回事就可

论坛徽章:
0
3 [报告]
发表于 2004-10-09 09:42 |只看该作者

open of pid file failed: No such file or directory

楼主,这个问题你现在解决没有?
我也遇到过这样问题,在syslog中出现这样的:
   Sep 25 19:27:54 atmpa ftpd[19671]: #2 open of pid file failed: No such file or directory
   Sep 25 19:28:13 atmpa ftpd[19675]: #2 open of pid file failed: No such file or directory
   Sep 25 19:29:05 atmpa ftpd[19688]: #2 open of pid file failed: No such file or directory
   Sep 25 19:29:10 atmpa ftpd[19692]: #2 open of pid file failed: No such file or directory

同时在运行ps命令时会出现:
ps: RDUBLK: Cannot find process ID 1859: No such device or address (error 6)
    真是搞得我好郁闷啊,现在还没有解决的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP