Server & OS

ubuntu 14.04 cron log 저장 경로 (crontab)

컨텐츠 정보

본문

 

http://askubuntu.com/questions/624701/where-are-cron-logs-stored-on-ubuntu-14-04



As default, cron's logs saved in /var/log/syslog. It depends on rsyslogd configuration. You can change it:


Go to rsyslog config

cd /etc/rsyslog.d/
sudo nano 50-default.conf

Uncoment line:

#cron.*                         /var/log/cron.log

Save file and restart rsyslog

sudo service rsyslog restart 

Restart your cron daemon for get it's messages from new file

sudo service cron restart
 

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
나는 항상 젊은 사람들의 실패를 흥미로써 바라본다. 젊은 시절의 실패는 곧 성공의 토대가 된다. 실패를 하고 물러섰던가? 다시 일어섰던가? 젊은 사람 앞에는 이 두가지 길이 있는데 이 순간에 성공은 결정되는 것이다. (몰트케)