/[smeserver]/rpms/e-smith-proxy/sme10/e-smith-proxy-5.6.0-set_file_desc_limit.patch
ViewVC logotype

Contents of /rpms/e-smith-proxy/sme10/e-smith-proxy-5.6.0-set_file_desc_limit.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Jan 5 16:35:01 2017 UTC (7 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-proxy-5_6_0-10_el7_sme, e-smith-proxy-5_6_0-12_el7_sme, e-smith-proxy-5_6_0-11_el7_sme, e-smith-proxy-5_6_0-8_el7_sme, e-smith-proxy-5_6_0-6_el7_sme, e-smith-proxy-5_6_0-5_el7_sme, e-smith-proxy-5_6_0-9_el7_sme, e-smith-proxy-5_6_0-4_el7_sme, HEAD
* Thu Jan 5 2017 Daniel Berteaud <daniel@firewall-services.com> 5.6.0-4.sme
- Allow custom file descriptor limit, and set default to 4096 [SME: 9912]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed