nginx Restart Issue after Cert-Update (Letsencrypt)

anfassl nginx-forum at forum.nginx.org
Sun Dec 11 13:11:42 UTC 2022


Hi Maxim,

the script consists of:
- Letsencrypt job (certbot renew) - works fine, certs are being updated
- nginx restart
- nginx stop
- nginx start

but even with those three commands the new certs aren't visible
Only cure so far log in to the server, and issue a restart manually.

The nginx logs don't show any messages - I'm increasing to notice for now.

this is the script

#!/bin/sh
#
#Daily check for new certs
#
# Get certs
certbot renew
# Restart NGINX Instances
service nginx restart
service nginx stop
service nginx start

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,296005,296022#msg-296022



More information about the nginx mailing list