]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/103/update.sh
core103: Restart squid and rebuild cache
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 103 / update.sh
index 65a85a207c0b384f8bf07111f5131254ab19f999..3f45eaa915dd1029c6b06efe18be6ca5ee6001ed 100644 (file)
@@ -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...