[squid-dev] Validate Config before reload
Rick Rackow
rick at rackow.io
Mon Sep 23 08:21:06 UTC 2024
Hey Team,
We have the following scenario: we get a list of IPs from an external service, add them to our squid ACLs via a cronjob and then in the same cronjob also reload squid. In this scenario it can happen that occasionally we get some nonsense response from the external service and that lands in the config, causing the config file to be invalid. Now if we to `systemctl reload squid` squid crashes on the restart because the config is invalid and thereafter can’t be restarted without explicitly stating `systemctl start squid`.
The question is, has it been considered to validate the config file before performing the actual reload, so there’s no disruption to squid if there was a working config beforehand?
Best Regards
Rick Rackow
More information about the squid-dev
mailing list