[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: certbot cron issue renew never happen



On Tue, 24 Jan 2017 at 09:48:59 +0100, Mészáros Mihály wrote:
> 0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl
> -e 'sleep int(rand(3600))' && certbot -q renew

Are you on a system that was booted with systemd as pid 1? (Presumably the
answer is yes, from the commands and their output below.)

The intention is that this cron job is skipped (does nothing) on systemd
systems, and that /lib/systemd/system/certbot.timer starts
/lib/systemd/system/certbot.service twice a day instead. Is that not
working for you?

The output of

systemctl status certbot.timer
systemctl status certbot.service

would probably give you useful information.

    S


Reply to: