On Wed, 07 Dec 2005 16:51:43 +0000, Jason Bassett wrote:

>My reload section of /etc/init.d/squid
>
>reload() {
>      $SQUID $SQUID_OPTS -k reconfigure
>}

In addition to the above, I have a separate rebuild procedure.
Probably a bit of an overkill, but the following ensures squid
always has the correct access rights.  Worth a try perhaps?

squid_access_rights()
{
  chown  -R  squid.squid  /usr/local/squidGuard/db/*
  find /usr/local/squidGuard/db/ -type d -exec chmod 2770 {} \;
  find /usr/local/squidGuard/db/ -type f -exec chmod 0660 {} \;
}


squid_rebuild_db()
{
  echo "Updating squidGuard database...."
  squid_access_rights
  /usr/local/bin/squidGuard -C all
  squid_access_rights
}


ant

Reply via email to