Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when no renewal is done, should return a different exit code #844

Closed
pdumais opened this issue Apr 1, 2019 · 2 comments
Closed

when no renewal is done, should return a different exit code #844

pdumais opened this issue Apr 1, 2019 · 2 comments

Comments

@pdumais
Copy link

pdumais commented Apr 1, 2019

I am running lego using the goacme/lego docker image.
I am setting a cronjob to renew my certificates every day and if a renewal actually takes place, I need to restart my webserver. I don't want to blindly restart the webserver if no renewal took place (because there was still a good amount of days left until renewal).

For this reason, I think it would be very useful if lego would return a non-zero exit code if it refused to do the renewal.

@ldez ldez added the area/cli label Apr 1, 2019
@ldez
Copy link
Member

ldez commented Apr 1, 2019

Related to #216 (comment) and #427

@ldez ldez mentioned this issue Apr 1, 2019
@pdumais
Copy link
Author

pdumais commented Apr 2, 2019

If you prefer not to use an exit code, then may I suggest adding a flag that will instruct lego to return, on stdout, a predictable short string that says "updated" or "noop" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants