Skip navigation.

Render in Opera

computer, internet, software

Posts tagged with "crontab"

crontab修改后重载方法

重启cron服务

方法1:
[root@localhost ~]# pgrep crond 注:判断crond 是否在运行;
[root@localhost ~]# pkill crond 注:杀掉正在运行中的crond;
[root@localhost ~]# pgrep crond 注:查看是否被杀掉了;
[root@localhost ~]# /usr/sbin/crond 注:运行crond;
<不过我把crond换为cron才可以 >

方法2:
用root身份才可以让它重启,另外让他重启的还有一种方法:# /etc/rc.d/init.d/crond restart
<我这里行不通>

方法3:
service crond restart
<没有试>
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31