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
남을 비난하는 것만큼 쉬운 일은 없다. 어떤 일이 그릇되었다는 것을 아는 데는 그리 많은 것이 필요하지 않다. 하지만 어떻게 하면 그것을 다시 바르게 할 수 있는가를 아는 데는 남다른 눈썰미가 있어야 한다. (빌 로저스)