From: Michael Tremer Date: Wed, 15 Jun 2016 17:47:29 +0000 (+0100) Subject: core103: Restart squid and rebuild cache X-Git-Tag: v2.19-core104^2~1 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=6bff907d71e6e4c72d94ffd8657141d54575369e core103: Restart squid and rebuild cache The swap.state file may be broken and so we delete this here and let squid rebuild the cache at the next start. Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/103/update.sh b/config/rootfiles/core/103/update.sh index 65a85a207c..3f45eaa915 100644 --- a/config/rootfiles/core/103/update.sh +++ b/config/rootfiles/core/103/update.sh @@ -42,6 +42,7 @@ done # Stop services +/etc/init.d/squid stop # Remove checkfstab rm -f /etc/rc.d/init.d/checkfstab @@ -56,8 +57,12 @@ ldconfig # Update Language cache #/usr/local/bin/update-lang-cache +# Remove potentially broken squid cache index (will be recreated after the next start) +rm -f /var/log/cache/swap.state + # Start services /etc/init.d/dnsmasq restart +/etc/init.d/squid start sync # This update need a reboot...