00 3 * * 5 date >> /home/root/log/certbot.log 01 3 * * 5 certbot renew >> /home/root/log/certbot.log 05 3 * * 5 systemctl restart nginx >> /home/root/log/certbot.log
こんな感じで実行した日時を入れて実行結果を出力してnginxをリスタートさせるようにした。
で、結果はこんな感じ
2021年 7月 16日 金曜日 13:00:01 JST - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing /etc/letsencrypt/renewal/plusload.net-0001.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The following certs are not due for renewal yet: /etc/letsencrypt/live/plusload.net-0001/fullchain.pem expires on 2021-10-07 (skipped) No renewals were attempted.
nginxはエラーになってないのでログは出ていない。