[systemd-devel] Overriding OnCalendar

Kenneth Porter shiva at sewingwitch.com
Fri Mar 29 18:35:04 UTC 2019


I'm using the certbot package from EPEL to renew my letsencrypt 
certificates. I want to change the default renewal interval from daily to 
weekly. I created /etc/systemd/system/certbot-renew.timer.d/weekly.conf 
with the following content:

[Timer]
# default is daily but that generates too many log files and we can
# renew within a month of the cert's expiration, so weekly checks are
# adequate.
OnCalendar=weekly

Looking at the output of "journalctl -u certbot-renew.service" I still see 
the service running daily. What am I doing wrong?

Here's /usr/lib/systemd/system/certbot-renew.timer:

[Unit]
Description=This is the timer to set the schedule for automated renewals

[Timer]
OnCalendar=daily
RandomizedDelaySec=6hours
Persistent=true

[Install]
WantedBy=timers.target




More information about the systemd-devel mailing list