Allow quiet/silent operation #213

Closed
opened 2025-12-29 01:19:00 +01:00 by adam · 4 comments
Owner

Originally created by @j4Hu on GitHub (Apr 6, 2017).

  • add new --quiet/--silent argument, so program report only errors (cron).
  • errors to stderr

temp sollution:
dehydrated --cron | egrep -v '^(# INFO:| + Checking| + Valid till|Processing)'
tnx

Originally created by @j4Hu on GitHub (Apr 6, 2017). - add new --quiet/--silent argument, so program report only errors (cron). - errors to stderr temp sollution: dehydrated --cron | egrep -v '^(# INFO:| \+ Checking| \+ Valid till|Processing)' tnx
adam closed this issue 2025-12-29 01:19:00 +01:00
Author
Owner

@helmo commented on GitHub (Apr 17, 2017):

Most errors already went to STDERR, two remainig ones are fixed in #381.

To get quiet behaviour I suggest redirecting the STDOUT to a logfile instead of grepping it away.

dehydrated --cron >> /var/log/dehydrated.log

@helmo commented on GitHub (Apr 17, 2017): Most errors already went to STDERR, two remainig ones are fixed in #381. To get quiet behaviour I suggest redirecting the STDOUT to a logfile instead of grepping it away. `dehydrated --cron >> /var/log/dehydrated.log`
Author
Owner

@cultcom commented on GitHub (Apr 28, 2017):

j4Hu is right, normal operation without any change should be quit for cron. Another logfile which needs rotation and stuff is too much in my opinion.
But what I want to know is when there actually was a renewal or if that renewal failed.

@cultcom commented on GitHub (Apr 28, 2017): j4Hu is right, normal operation without any change should be quit for cron. Another logfile which needs rotation and stuff is too much in my opinion. But what I want to know is when there actually was a renewal or if that renewal failed.
Author
Owner

@dafyddt commented on GitHub (May 24, 2017):

I'm glad I found this script as it's a much nicer solution for my purpose. I was going to replace certbot with this script across all my servers until I saw this issue.

I agree that a non-verbose cron operation would be more useful. One workaround is to run with a wrapper - a nice one is Cronic http://habilis.net/cronic/

@dafyddt commented on GitHub (May 24, 2017): I'm glad I found this script as it's a much nicer solution for my purpose. I was going to replace certbot with this script across all my servers until I saw this issue. I agree that a non-verbose cron operation would be more useful. One workaround is to run with a wrapper - a nice one is Cronic http://habilis.net/cronic/
Author
Owner

@lukas2511 commented on GitHub (Jul 10, 2017):

I'd recommend using a wrapper like cronic (which also seems to be just a shell-script).

Rewriting the logging code is not something I'll be working on any time soon since for me using a wrapper works perfectly and on most systems I actually just let cron send me the whole output because it only runs once a month anyway (and could be run even less often if it spams too much).

If anybody really wants this feature feel free to implement it and open a pullrequest. If i think that it's good I'll merge it.

@lukas2511 commented on GitHub (Jul 10, 2017): I'd recommend using a wrapper like cronic (which also seems to be just a shell-script). Rewriting the logging code is not something I'll be working on any time soon since for me using a wrapper works perfectly and on most systems I actually just let cron send me the whole output because it only runs once a month anyway (and could be run even less often if it spams too much). If anybody really wants this feature feel free to implement it and open a pullrequest. If i think that it's good I'll merge it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#213