mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Ability to change filedescriptors up to 16000 Ability to use cachemanager website to monitor squid Ability to reconfigure squid wihtout restart
14 lines
513 B
Bash
14 lines
513 B
Bash
#!/bin/bash
|
|
. /opt/pakfire/lib/functions.sh
|
|
/usr/local/bin/backupctrl exclude >/dev/null 2>&1
|
|
/etc/init.d/squid stop
|
|
extract_files
|
|
[ -e /var/ipfire/qos/enable ] && qosctrl stop
|
|
qosctrl generate
|
|
[ -e /var/ipfire/qos/enable ] && qosctrl start
|
|
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
|
sysctl -p
|
|
mv /etc/squid/cachemgr.conf /var/ipfire/proxy/cachemgr.conf
|
|
ln -sf /var/ipfire/proxy/cachemgr.conf /etc/squid/cachemgr.conf
|
|
chown nobody.nobody /var/ipfire/proxy/cachemgr.conf
|
|
/etc/init.d/squid start |