**文書の過去の版を表示しています。**
20210602
crontabのログ出力
https://hodalog.com/how-to-inspect-cron-logs/ を参考にcrontabで実行したジョブの実行結果を出力する
/home/yoshitake/cron_log/letsencrypt.log に出力
10,20,30,40,50 * * * * /etc/letsencrypt/letsencrypt-renew.sh > /home/yoshitake/cron_log/letsencrypt.log 2>&1
エラー結果
管理者権限のエラーが出ていたので管理者でなくても使えるところにファイルを再配置
再度ログ検証
再度確認したが、更新はされなかった
またスクリプト内のコマンドを打っても更新されなかった。
–force-renewオプションを付けると更新された。おそらくこのオプションを付けない場合、期限近くにならないと更新はされなさそうである。
とりあえずしばらく待ってみる
@reboot /usr/bin/bash /home/yoshitake/cronscript/start.sh 0 3 * * 6 /home/yoshitake/cronscript/letsencrypt-renew.sh > /home/yoshitake/cron_log/letsencrypt_4.log 2>&1