sudo certbot renew --quiet --deploy-hook 'systemctl reload nginx'

Category: VPS Management

sudo certbot renew --quiet --deploy-hook 'systemctl reload nginx'

Renew silently and reload nginx on success

The cron-friendly form: --quiet suppresses all output except errors, and --deploy-hook runs the quoted command only when a certificate was actually renewed — the hook makes nginx pick up the new certificate files. Because it runs only on real renewal, it is safe on a nightly schedule. This mirrors what the packaged certbot timer does.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.