6 |
# Configuration template expansion of ntp.conf |
# Configuration template expansion of ntp.conf |
7 |
foreach my $file ( |
foreach my $file ( |
8 |
- qw(/etc/ntp/step-tickers /etc/ntp.conf /var/service/ntpd/env/MEMLIMIT)) |
- qw(/etc/ntp/step-tickers /etc/ntp.conf /var/service/ntpd/env/MEMLIMIT)) |
9 |
+ qw(/etc/ntp/step-tickers /etc/ntp.conf /etc/systemd/system/ntpd.service.d/override.conf)) |
+ qw(/etc/ntp/step-tickers /etc/ntp.conf /usr/lib//systemd/system/ntpd.service.d/override.conf)) |
10 |
{ |
{ |
11 |
templates2events($file, qw( |
templates2events($file, qw( |
12 |
timeserver-update |
timeserver-update |
25 |
-safe_symlink("../init.d/supervise/ntpd", "root/etc/rc.d/rc0.d/K26ntpd"); |
-safe_symlink("../init.d/supervise/ntpd", "root/etc/rc.d/rc0.d/K26ntpd"); |
26 |
+$event = "e-smith-ntp-update"; |
+$event = "e-smith-ntp-update"; |
27 |
+ |
+ |
28 |
+foreach my $file (qw(/etc/ntp/step-tickers /etc/ntp.conf /etc/systemd/system/ntpd.service.d/50koozali.conf)) |
+foreach my $file (qw(/etc/ntp/step-tickers /etc/ntp.conf /usr/lib//systemd/system/ntpd.service.d/50koozali.conf)) |
29 |
+{ |
+{ |
30 |
+ templates2events( $file, $event ); |
+ templates2events( $file, $event ); |
31 |
+} |
+} |
38 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); |
39 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/squid"); |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/squid"); |
40 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
41 |
diff -urN e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit |
diff -urN e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib//systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib//systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit |
42 |
--- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit 1970-01-01 04:00:00.000000000 +0400 |
--- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib//systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit 1970-01-01 04:00:00.000000000 +0400 |
43 |
+++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit 2020-11-14 23:24:56.964745677 +0400 |
+++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib//systemd/system/ntpd.service.d/50koozali.conf/50MemoryLimit 2020-11-14 23:24:56.964745677 +0400 |
44 |
@@ -0,0 +1,18 @@ |
@@ -0,0 +1,18 @@ |
45 |
+{ |
+{ |
46 |
+ # memory limit to catch any memory leak before it kills the system |
+ # memory limit to catch any memory leak before it kills the system |
113 |
+ |
+ |
114 |
+[Install] |
+[Install] |
115 |
+WantedBy=sme-server.target |
+WantedBy=sme-server.target |
116 |
diff -urN e-smith-ntp-2.6.0.old/root/etc/systemd/system/ntpd.service.d/50koozali.conf e-smith-ntp-2.6.0/root/etc/systemd/system/ntpd.service.d/50koozali.conf |
diff -urN e-smith-ntp-2.6.0.old/root/usr/lib//systemd/system/ntpd.service.d/50koozali.conf e-smith-ntp-2.6.0/root/usr/lib//systemd/system/ntpd.service.d/50koozali.conf |
117 |
--- e-smith-ntp-2.6.0.old/root/etc/systemd/system/ntpd.service.d/50koozali.conf 1970-01-01 04:00:00.000000000 +0400 |
--- e-smith-ntp-2.6.0.old/root/usr/lib//systemd/system/ntpd.service.d/50koozali.conf 1970-01-01 04:00:00.000000000 +0400 |
118 |
+++ e-smith-ntp-2.6.0/root/etc/systemd/system/ntpd.service.d/50koozali.conf 2020-11-14 11:10:29.000000001 +0400 |
+++ e-smith-ntp-2.6.0/root/usr/lib//systemd/system/ntpd.service.d/50koozali.conf 2020-11-14 11:10:29.000000001 +0400 |
119 |
@@ -0,0 +1,2 @@ |
@@ -0,0 +1,2 @@ |
120 |
+[Service] |
+[Service] |
121 |
+MemoryLimit=250000 |
+MemoryLimit=250000 |