CRONジョブを見ると動いているのでログの出力を変えてみた

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はエラーになってないのでログは出ていない。

コメントを残す

メールアドレスが公開されることはありません。必須項目には印がついています *

CAPTCHA


日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)