I have this crontab task:
$ sudo crontab -l -u root
0 22 * * * certbot renew --cert-name app.my_website123.net --pre-hook "systemctl nginx stop" --post-hook "systemctl nginx start" >> /home/my_user/cron_log1.log 2>&1
certbot renew requires root.
The log file still doesn't exist, after several days, which implies that the task doesn't get executed. Why is that?
Comments
Post a Comment