2015-11-24

solaris 7-******* CRON ABORTED ********

! unexpected pid returned 171 (ignored) Tue Nov 24 03:35:24 2015
! *** cron started ***   pid = 174 Tue Nov 24 04:07:49 2015
! unexpected pid returned 178 (ignored) Tue Nov 24 04:08:52 2015
! SIGTERM Tue Nov 24 10:09:24 2015
! ******* CRON ABORTED ******** Tue Nov 24 10:09:24 2015
! *** cron started ***   pid = 1279 Tue Nov 24 10:09:31 2015
! unexpected pid returned 1280 (ignored) Tue Nov 24 10:10:31 2015
! SIGTERM Tue Nov 24 10:11:17 2015
! ******* CRON ABORTED ******** Tue Nov 24 10:11:17 2015
! *** cron started ***   pid = 169 Tue Nov 24 10:12:42 2015
! unexpected pid returned 173 (ignored) Tue Nov 24 10:13:45 2015

Cron無故停止排程...
依序檢查相關設定
Step 1.check log



# cat /var/cron/log

Step 2.check cron file
#cat /var/spool/cron/crontabs/"username"
#chmod & chgrp

Step 3. Service  stop & start
# /etc/init.d/cron stop
# /etc/init.d/cron start

# ps -ef |grep cron

依續做完後,排程仍無動作...
再找不到好的解決方式,乾脆把/var/spool/cron/crontabs/"username"砍掉重建。

結果排程就正常執行了。

***備註***
在crontab設定vi編輯
$ which $EDITOR
$ 
$ EDITOR=vi
$ export EDITOR

在root下,設定"username"的排程指令
#crontab -e "username"

沒有留言:

張貼留言

Related Posts Plugin for WordPress, Blogger...