Created attachment 213468 [details] Patch In addition to stop service → renew cert → start service pattern, support restarting and reloading a service after certificate renewals, which is more common and useful pattern which implies less/no downtime.
There should also be support for deploy hook (see also #245954)
Please see review D25391, I tried to gather all scenarios in the periodic script.
A commit references this bug: Author: dbaio Date: Sat Jul 11 12:33:24 UTC 2020 New revision: 541966 URL: https://svnweb.freebsd.org/changeset/ports/541966 Log: security/py-certbot: Improve periodic script This change will keep the default behavior in the periodic script and will add options to customize each parameter for those who want to: - weekly_certbot_pre_hook - weekly_certbot_post_hook - weekly_certbot_deploy_hook - weekly_certbot_custom_args PR: 245674, 245954 Reported by: amdmi3, fjoe Reviewed by: koobs Approved by: dbaio, koobs (python, maintainer) MFH: 2020Q3 Differential Revision: https://reviews.freebsd.org/D25391 Changes: head/security/py-certbot/Makefile head/security/py-certbot/files/500.certbot.in head/security/py-certbot/files/pkg-message.in head/security/py-certbot/pkg-message
Committed, waiting MFH.
A commit references this bug: Author: dbaio Date: Sat Jul 11 12:50:21 UTC 2020 New revision: 541967 URL: https://svnweb.freebsd.org/changeset/ports/541967 Log: MFH: r541966 security/py-certbot: Improve periodic script This change will keep the default behavior in the periodic script and will add options to customize each parameter for those who want to: - weekly_certbot_pre_hook - weekly_certbot_post_hook - weekly_certbot_deploy_hook - weekly_certbot_custom_args PR: 245674, 245954 Reported by: amdmi3, fjoe Reviewed by: koobs Approved by: dbaio, koobs (python, maintainer) Differential Revision: https://reviews.freebsd.org/D25391 Approved by: ports-secteam (joneum) Changes: _U branches/2020Q3/ branches/2020Q3/security/py-certbot/Makefile branches/2020Q3/security/py-certbot/files/500.certbot.in branches/2020Q3/security/py-certbot/files/pkg-message.in branches/2020Q3/security/py-certbot/pkg-message