Crontab job renewal

Hi, installed certbot + nginx on debian 9

All good

It says packages comes with cron job, do I need to add job to crontab if so whats the command?

Or it will renew itself and dont have to do anything?


Check for certbot/letsencrypt in /etc/cron.d/ .

If you installed from OS package manager, it should be there.

it is inded with this line

0 */12 * * * root test -x /usr/bin/certbot -a ! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

why test ?

The test command is there to ensure that the cronjob does not overlap with a systemd timer that may also have been installed, depending on how the distro is configured.


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