Files
common-server-public/acme/crontab.example
张威33321 a9ec40a289 0908
2026-09-09 15:04:54 +08:00

11 lines
618 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# acme.sh 安装时会自动写入一条 cron每天执行 ~/.acme.sh/acme.sh --cron
# 续签成功后自动执行 --reloadcmd所以续签本身不需要再配 cron。
#
# 这里只需要一个"有效期检查"作为兜底告警:
# 自动续签可能静默失败,剩余天数低于 20 天时脚本以非 0 退出。
0 8 * * * bash /home/awei/workspace/common-server-public/acme/check-cert.sh >> /var/log/acme-check.log 2>&1
# 如需强制每天显式跑一次续签(一般不必),可加:
# 0 3 * * * bash /home/awei/workspace/common-server-public/acme/renew.sh >> /var/log/acme-renew.log 2>&1