Server & OS

우분투 & 라즈베리파이 cron log 저장

컨텐츠 정보

본문

1. 우분투 

 

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

 

 

 

2. 라즈베리파이 

 

$ vi /etc/rsyslog.conf

and uncomment the line

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

After that, you need to restart rsyslog via

$ /etc/init.d/rsyslog restart 

and you will find the cron logs in /var/log/cron.log 

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
희망이란 본래 있다고도 할 수 없고 없다고도 할 수 없다. 그것은 마치 땅 위의 길과 같은 것이다. 본래 땅 위에는 길이 없었다. 걸어가는 사람이 많아지면 그것이 곧 길이 되는 것이다. (노신의 “고향“중에서)