Restarting Stunnel after certificate renewal

I ran this command:
sudo certbot certonly --standalone --deploy-hook="service stunnel restart"

Will stunnel be restarted automatically after every renewal? I don't see anything in /etc/letsencrypt/renewal-hooks/deploy

Welcome to the community @Disco1

Yes, the deploy hook will run at each renewal. See the renewal conf file in

/etc/letsencrypt/renewal

Placing scripts in the Hooks folder is alternate way to do it. See below
https://eff-certbot.readthedocs.io/en/stable/using.html#renewing-certificates

4 Likes

Only if the command was successful.
If it happened to fail, then nothing was changed,
[and you are right where you were before trying that command]

So, was the command able to complete successfully?

3 Likes

As far as I can tell, yes. Everything is running fine, I'm just concerned about come renewal day.

2 Likes

You check the contents of the renewal file.
/etc/letsencrypt/renewal/{filename}

2 Likes

Only one thing to do: mark it in your calendar and after renewal check if the service reload was successful too.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.