]> git.pld-linux.org Git - packages/squid.git/blame - squid-check_cache
do not use builder's CPU instruction set, leads to SIGILL on older x86_64
[packages/squid.git] / squid-check_cache
CommitLineData
9aee221f
ŁK
1#!/bin/sh
2
3# determine which one is the cache_swap directory
4CACHE_SWAP=$(awk '/^cache_dir/{print $3}' /etc/squid/squid.conf)
5[ -z "$CACHE_SWAP" ] && CACHE_SWAP=/var/cache/squid
6
7need_init=0
8for dir in $CACHE_SWAP; do
9 if [ ! -d $dir/00 ]; then
10 need_init=1
11 fi
12done
13if [ $need_init = 1 ]; then
14 squid -z -F -D >> /var/log/squid/squid.out 2>&1
15fi
16exit 0
This page took 0.023037 seconds and 4 git commands to generate.