Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:meikestone
Squid5.1
cache_swap.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cache_swap.sh of Package Squid5.1
#!/bin/bash if [ -f /etc/sysconfig/squid ]; then . /etc/sysconfig/squid fi SQUID_CONF=${SQUID_CONF:-"/etc/squid/squid.conf"} CACHE_SWAP=`awk '/^[[:blank:]]*cache_dir/ { print $3 }' "$SQUID_CONF"` init_cache_dirs=0 for adir in $CACHE_SWAP; do if [ ! -d $adir/00 ]; then echo -n "init_cache_dir $adir... " init_cache_dirs=1 fi done if [ $init_cache_dirs -ne 0 ]; then echo "" squid --foreground -z -f "$SQUID_CONF" >> /var/log/squid/squid.out 2>&1 fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor