Crontab job renewal


#1

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?

Thanks


#2

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

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


#3

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 ?


#4

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.


#5

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