Comment 10 for bug 717397

Revision history for this message
Steve Langasek (vorlon) wrote :

Well, that's because the postinst isn't using the init script policy layer.

if status squid | grep "start/running" > /dev/null; then
        restart squid
fi

if [ "$FIXLINES" = "false" ]; then
  echo "squid.conf contains 2.2.5 syntax - cache_dir directive - not starting "
  echo "Run 'dpkg-reconfigure -plow squid' to fix this automatically,"
  echo "or fix the 'cache_dir'-entry in your squid.conf manually."
  echo "See documentation in /usr/share/doc/squid for nearer instructions."
else
  if status squid | grep "start/running" > /dev/null; then
        restart squid
  fi
fi

Why isn't this "invoke-rc.d squid restart" like it should be? Also, the fixlines check is pointless given that it's preceded by a squid restart command. This all seems to have been a wrong fix for bug #552360 and/or bug #509307.

This ought to be fixed up in SRU, probably at the same time.