Rasbpberrpi でまたcron が効かなくなった。ちゃんとログ出して対処することにする。 このサイトが良かった。まんま設定する。 shima-nigoro.hatenablog.jp rsyslogでcronのログを取る設定にする。 $ sudo vim /etc/rsyslog.conf rsyslog サービスを再起動して設定を反映。 $ sudo /etc/init.d/rsyslog restart ーーー cron のログレベルを設定。全部記録する設定にする。 $ sudo vim /etc/default/cron cron サービスを再起動して設定を反映する。 $ sudo /etc/init.d/cron restart ーーー 最後。これが大事。tail -f で常にcronのログをモニタしておく。 $ tail -f /var/log/cron.log ーーー