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 

관련자료

등록된 댓글이 없습니다.
Today's proverb
당신이 가야 할 길이 당신의 눈앞에 있거든 망설이지 말라. 당신이 가야 할 길이 분명하면, 기꺼이 확고한 의지로 그 길을 가라. 혹시 당신이 가야 할 길이 보이지 않는다면 멈추어 서서 가장 훌륭한 충고자들과 상의하라. 만일 당신이 가는 길에 어떤 장애물이 나타나면, 정의가 가리키는 길을 따라 당신이 갈 수 있는 곳까지 조심히 나아가라. (아우렐리우스)