1 |
diff -Nur e-smith-proxy-5.6.0/root/etc/e-smith/templates/etc/squid/squid.conf/96filedescriptor e-smith-proxy-5.6.0_bz9912/root/etc/e-smith/templates/etc/squid/squid.conf/96filedescriptor |
2 |
--- e-smith-proxy-5.6.0/root/etc/e-smith/templates/etc/squid/squid.conf/96filedescriptor 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ e-smith-proxy-5.6.0_bz9912/root/etc/e-smith/templates/etc/squid/squid.conf/96filedescriptor 2017-01-05 15:30:02.847287303 +0100 |
4 |
@@ -0,0 +1 @@ |
5 |
+max_filedesc { ($squid{'MaxFileDesc'} || '4096') } |
6 |
diff -Nur e-smith-proxy-5.6.0/root/var/service/squid/run e-smith-proxy-5.6.0_bz9912/root/var/service/squid/run |
7 |
--- e-smith-proxy-5.6.0/root/var/service/squid/run 2016-02-05 22:48:22.000000000 +0100 |
8 |
+++ e-smith-proxy-5.6.0_bz9912/root/var/service/squid/run 2017-01-05 15:38:10.792208789 +0100 |
9 |
@@ -6,6 +6,7 @@ |
10 |
exec 2>&1 |
11 |
squid=/usr/sbin/squid |
12 |
config=/etc/squid/squid.conf |
13 |
+file_descr=$(/sbin/e-smith/db configuration getprop squid MaxFileDesc || echo 4096) |
14 |
|
15 |
[ -e $squid ] || exit 1 |
16 |
[ -e $config ] || exit 1 |
17 |
@@ -16,5 +17,6 @@ |
18 |
$squid -z -f $config |
19 |
fi |
20 |
|
21 |
+ulimit -Hn $file_descr |
22 |
exec /usr/local/bin/setuidgid squid \ |
23 |
$squid -f $config -sN |