정보&강의 Centos 7 에서 Cron.daily가 실행되지 않을 때
- 운영자
- 846
- 0
첨부 1
이 문제는 cronie-noanacron 가 기본적으로 설치되지 않기 때문에 발생한다.
1. yum으로 설치하면,
yum install cronie-noanacron
/etc/cron.d 폴더에 “dailyjobs”이라는 파일이 생성된다.
확인해보면,
[root@locak locak]# cat /etc/cron.d/dailyjobs
# Run the daily, weekly, and monthly jobs if cronie-anacron is not installed
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# run-parts
02 4 * * * root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.daily
22 4 * * 0 root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.weekly
42 4 1 * * root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.monthly
이제 다음 날 잘 작동되는지 확인해보자..
이런 글도 찾아보세요!
댓글 0
권한이 없습니다. 로그인