I have a problem with a cron job that is somehow still running even though I've commented out the line inside the cron file (in /etc/cron.d/) that defines the job. I commented out that line weeks ago, and I have since restarted the server:
Code:
# more /etc/cron.d/certbot
[snip]
# 0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew
I don't see anything interesting in /var/spool/cron/ :
Code:
# tree /var/spool/cron/
/var/spool/cron/
├── atjobs
├── atspool
└── crontabs
3 directories, 0 files
Yet, I can see in the syslog file it's still running:
Code:
Nov 22 12:54:56 thule certbot[15180]: /usr/lib/python2.7/dist-packages/OpenSSL/rand.py:58: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
Nov 22 12:54:56 thule certbot[15180]: result_code = _lib.RAND_bytes(result_buffer, num_bytes)
Nov 22 12:55:01 thule CRON[15271]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Nov 22 12:55:25 thule systemd[1]: Started Certbot.
What is going on? How can I stop this job from running again?
(The reason I want to disable the job is because my web server somehow dies every time this job tries to restart it.)
Edited to add:
Code:
# crontab -l
no crontab for root
I've also looked in /etc/cron.hourly/, /etc/cron.daily/, /etc/cron.weekly/ and /etc/cron.monthly/, but there's no reference to the problematic cron job.