mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
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 <michael.tremer@ipfire.org>
This commit is contained in:
@@ -42,6 +42,7 @@ done
|
|||||||
|
|
||||||
|
|
||||||
# Stop services
|
# Stop services
|
||||||
|
/etc/init.d/squid stop
|
||||||
|
|
||||||
# Remove checkfstab
|
# Remove checkfstab
|
||||||
rm -f /etc/rc.d/init.d/checkfstab
|
rm -f /etc/rc.d/init.d/checkfstab
|
||||||
@@ -56,8 +57,12 @@ ldconfig
|
|||||||
# Update Language cache
|
# Update Language cache
|
||||||
#/usr/local/bin/update-lang-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
|
# Start services
|
||||||
/etc/init.d/dnsmasq restart
|
/etc/init.d/dnsmasq restart
|
||||||
|
/etc/init.d/squid start
|
||||||
|
|
||||||
sync
|
sync
|
||||||
# This update need a reboot...
|
# This update need a reboot...
|
||||||
|
|||||||
Reference in New Issue
Block a user