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
인내심을 가져라. 때가 되면 모든 것은 변한다. 조바심이 가을의 영광을 만들거나 살을 에는 겨울을 끝낼 수 는 없다. 근심을 오랫동안 마음에 품고 있으면 그만큼 마음의 평정을 회복하기 어려워진다. 나쁜 생각을 스스로 떨쳐버려라. 나쁜 생각은 영혼의 뿌리를 갉아먹는 악이다.