mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
Allow quiet/silent operation #213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @j4Hu on GitHub (Apr 6, 2017).
temp sollution:
dehydrated --cron | egrep -v '^(# INFO:| + Checking| + Valid till|Processing)'
tnx
@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@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.
@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/
@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.