/var/log/cron

1 개요[ | ]

crontab 로그
/var/log/cron
  • crond, crontab에 관한 모든 로그
  • cron 작업이 언제 어느 계정으로 수행되었는지 기록[1]
  • cron 작업 추가/삭제 뿐만 아니라 조회한 기록까지 남는다.

2 예시[ | ]

[root@zetawiki ~]# tail -30 /var/log/cron
... (생략)
Jul  7 01:10:01 localhost CROND[3155]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul  7 01:20:01 localhost CROND[3158]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul  7 01:30:01 localhost CROND[3161]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul  7 01:40:01 localhost CROND[3164]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Aug  2 20:54:52 localhost crond[2261]: (CRON) STARTUP (1.4.4)
Aug  2 20:54:53 localhost crond[2261]: (CRON) INFO (running with inotify support)
Aug  2 20:55:00 localhost crontab[2491]: (root) LIST (root)
Aug  2 20:55:02 localhost crontab[2493]: (root) BEGIN EDIT (root)
Aug  2 20:55:16 localhost crontab[2493]: (root) END EDIT (root)
Aug  2 20:56:05 localhost crontab[2505]: (root) BEGIN EDIT (root)
Aug  2 20:56:19 localhost crontab[2505]: (root) REPLACE (root)
Aug  2 20:56:19 localhost crontab[2505]: (root) END EDIT (root)
Aug  2 20:56:21 localhost crontab[2510]: (root) LIST (root)
Aug  2 20:57:01 localhost CROND[2517]: (root) CMD (sh /root/script/check.sh)
Aug  2 20:58:01 localhost CROND[2598]: (root) CMD (sh /root/script/check.sh)
Aug  2 20:59:01 localhost CROND[2615]: (root) CMD (sh /root/script/check.sh)

3 같이 보기[ | ]

4 주석[ | ]

  1. crond는 자식 프로세스 crond를 생성하여 수행하도록 하며 PID도 기록된다.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}