This question already has an answer here:
I have cron task for root that should run daily:
$ whoami main_usr $ sudo crontab -l -u root 0 23 * * * certbot renew --cert-name app.my_domain123.com --pre-hook "systemctl nginx stop" --post-hook "systemctl nginx start" >& /home/my_user123/cron_renew_certificate.log
It's been a few days already, the file
/home/my_user123/cron_renew_certificate.log doesn't exist.
Does it run at all? How can I make sure that it does? If not, why not?