免费注册 查看新帖 |

Chinaunix

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

救命呀,crontab 服务启动不了啦!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-01 15:08 |只看该作者 |倒序浏览
我的crontab中定义的一些脚本没有被执行,我怀疑是这个服务的问题,于是我用ps -ef |grep cron察看了一下cron的进程,然后用kill -9 将root的这个进程干掉了,但是却怎么也启动不起来了
# ps -ef |grep cron
    root   198     1  0   Nov 20 ?        0:00 /usr/sbin/cron
    root  3277  3163  0 15:05:11 pts/7    0:00 grep cron
# kill -9 198
# cron start
# ! cannot start cron; FIFO exists Mon Dec  1 15:05:26 2003
! ******* CRON ABORTED ******** Mon Dec  1 15:05:26 2003
# cron stop
# ! cannot start cron; FIFO exists Mon Dec  1 15:06:33 2003
! ******* CRON ABORTED ******** Mon Dec  1 15:06:33 2003

请问如何才能将这个进程启动起来呢???
在线等,急...............

论坛徽章:
0
2 [报告]
发表于 2003-12-01 15:25 |只看该作者

救命呀,crontab 服务启动不了啦!!!

不会吧,真的没人知道???
急死啦!!!

论坛徽章:
0
3 [报告]
发表于 2003-12-01 15:29 |只看该作者

救命呀,crontab 服务启动不了啦!!!

The file /etc/cron.d/FIFO is used  (among  other
     things) as a lock file to prevent the execution of more than
     one instance of cron.
删除/etc/cron.d/FIFO,然后启动cron

论坛徽章:
0
4 [报告]
发表于 2003-12-01 15:46 |只看该作者

救命呀,crontab 服务启动不了啦!!!

我按照你的方法作了,但是还有个小问题,现在这个服务倒是起来了,但是我却发现了下面的现象:
# ps -ef |grep cron
    root  7425  7248  0 15:52:25 pts/4    0:00 grep cron
    root  6994     1  0 15:48:04 ?        0:00 cron start

而且过了10分钟后6994这个进程仍然是start的状态,会不会有问题呢?正常的话这个服务早应该起来啦呀?
你看我前面的贴子:
# ps -ef |grep cron
root 198 1 0 Nov 20 ? 0:00 /usr/sbin/cron
root 3277 3163 0 15:05:11 pts/7 0:00 grep cron
会不会有问题呢???
另外您说的FIFO是什么文件呢?是起什么作用的呢?

论坛徽章:
0
5 [报告]
发表于 2003-12-01 16:15 |只看该作者

救命呀,crontab 服务启动不了啦!!!

root 3277 3163 0 15:05:11 pts/7 0:00 grep cron :是你执行ps -ef |grep cron的搜索进程,没问题

FIFO是一个锁文件,具体作用:
Since cron never exits, it should  be  executed  only  once.
     This  is done routinely through /etc/rc2.d/S75cron at system
     boot time.  The file /etc/cron.d/FIFO is used  (among  other
     things) as a lock file to prevent the execution of more than
     one instance of cron.

论坛徽章:
0
6 [报告]
发表于 2003-12-01 16:37 |只看该作者

救命呀,crontab 服务启动不了啦!!!

我问的是root 6994 1 0 15:48:04 ? 0:00 cron start 这个进程,不是上面那个!
另外你下面写的英文我实在是看不懂,能否解释一下呢?

论坛徽章:
0
7 [报告]
发表于 2009-03-09 10:14 |只看该作者
你可以到/etc/init.d下执行cron start即可

论坛徽章:
0
8 [报告]
发表于 2009-03-09 10:18 |只看该作者
正常情况下最好先stop,然后再
start,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP