/[smeserver]/rpms/e-smith-ntp/sme8/e-smith-ntp-2.2.0-Memlimit.patch
ViewVC logotype

Annotation of /rpms/e-smith-ntp/sme8/e-smith-ntp-2.2.0-Memlimit.patch

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


Revision 1.1 - (hide annotations) (download)
Sat Jul 27 16:05:35 2013 UTC (11 years, 3 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-ntp-2_2_0-8_el5_sme, e-smith-ntp-2_2_0-6_el5_sme, e-smith-ntp-2_2_0-7_el5_sme, HEAD
* Sat Jul 27 2013 Ian Wells <esmith@wellsi.com> 2.2.0-6.sme
- Remove default and migrate fragments for ntpd memory limit.
- Increase memory limit for ntpd [SME: 7807]

1 wellsi 1.1 diff -ruN e-smith-ntp-2.2.0.old/root/etc/e-smith/templates/var/service/ntpd/env/MEMLIMIT e-smith-ntp-2.2.0/root/etc/e-smith/templates/var/service/ntpd/env/MEMLIMIT
2     --- e-smith-ntp-2.2.0.old/root/etc/e-smith/templates/var/service/ntpd/env/MEMLIMIT 2005-08-31 14:27:23.000000000 -0700
3     +++ e-smith-ntp-2.2.0/root/etc/e-smith/templates/var/service/ntpd/env/MEMLIMIT 2013-02-02 22:07:02.000000000 -0800
4     @@ -1 +1,14 @@
5     -{ $OUT = ($ntpd{MemLimit} > "6000000") ? $ntpd{MemLimit} : "6000000" }
6     +{
7     + # memory limit to catch any memory leak before it kills the system
8     + use constant MIN_MEMORY_LIMIT => 35000000;
9     +
10     + # If there is a memory limit in the database and it is below the minimum, delete it.
11     + if (defined $ntpd{MemLimit} && $ntpd{MemLimit} < MIN_MEMORY_LIMIT)
12     + {
13     + $DB->get_prop_and_delete('ntpd','MemLimit');
14     + delete $ntpd{MemLimit};
15     + }
16     +
17     + $OUT = $ntpd{MemLimit} || MIN_MEMORY_LIMIT;
18     +}
19     +
20     diff -ruN e-smith-ntp-2.4.0.old/root/etc/e-smith/db/configuration/defaults/ntpd/MemLimit e-smith-ntp-2.4.0/root/etc/e-smith/db/configuration/defaults/ntpd/MemLimit
21     --- e-smith-ntp-2.4.0.old/root/etc/e-smith/db/configuration/defaults/ntpd/MemLimit 2008-10-07 10:36:26.000000000 -0700
22     +++ e-smith-ntp-2.4.0/root/etc/e-smith/db/configuration/defaults/ntpd/MemLimit 1969-12-31 16:00:00.000000000 -0800
23     @@ -1 +0,0 @@
24     -12000000
25     diff -ruN e-smith-ntp-2.4.0.old/root/etc/e-smith/db/configuration/migrate/ntpMemLimit e-smith-ntp-2.4.0/root/etc/e-smith/db/configuration/migrate/ntpMemLimit
26     --- e-smith-ntp-2.4.0.old/root/etc/e-smith/db/configuration/migrate/ntpMemLimit 2008-10-07 10:36:26.000000000 -0700
27     +++ e-smith-ntp-2.4.0/root/etc/e-smith/db/configuration/migrate/ntpMemLimit 1969-12-31 16:00:00.000000000 -0800
28     @@ -1,5 +0,0 @@
29     -{
30     - my $ntpd = $DB->get('ntpd');
31     - return unless $ntpd;
32     - $ntpd->set_prop('MemLimit', 12000000) if $ntpd->prop('MemLimit') < 12000000;
33     -}

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