unicornのlog rotationでハマったが、実は test コマンドの exit コード起因だったという話

unicorn の log を cron で毎日ローテートする設定を書いたところ、下記エラーメールが届いて「なぜだろう」と数時間唸ってました。ようやく解決に至ったので、メモしておきます。 メール 件名: Cron <root@***> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 本文: /etc/cron.daily/logrotate: e</root@***>…