I have a script that updates my ssl certificates and reloads squid to make it update its certificate once it is regenerated:
certbot renew service squid reload
I put it to /etc/cron.monthly/certbot-renew.sh to make it run monthly as root.
The certificates are updated, but squid stops working each time its certificate is changed. If I do
service squid reload
manually it starts to work. I cannot figure out what is happening because there is only the information on manual squid reload in syslog:
sudo grep squid /var/log/syslog Dec 23 20:39:11 localhost squid: * Reloading Squid HTTP Proxy configuration files Dec 23 20:39:11 localhost squid: ...done.
sudo grep CRON /var/log/syslog
does not show anything concerning to squid.
what is wrong with cron? If I run the script manually
squid is restarted and "Reloading Squid ..." appears in syslog.