101 |
+my $status = $ntp{status} || 'disabled'; |
+my $status = $ntp{status} || 'disabled'; |
102 |
+ |
+ |
103 |
+if ($status eq 'enabled') { |
+if ($status eq 'enabled') { |
104 |
+ $OUT .= "disable ntpdate.service"; |
+ $OUT .= "disable ntpdate.service\n"; |
105 |
+ $OUT .= "enable ntpd.service"; |
+ $OUT .= "enable ntpd.service\n"; |
106 |
+ } |
+ } |
107 |
+else |
+else |
108 |
+ { |
+ { |
109 |
+ $OUT .= "disable ntpdate.service"; |
+ $OUT .= "disable ntpdate.service\n"; |
110 |
+ $OUT .= "disable ntpd.service"; |
+ $OUT .= "disable ntpd.service\n"; |
111 |
+ } |
+ } |
112 |
+} |
+} |
113 |
diff -Nur e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/80install e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/80install |
diff -Nur e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/80install e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/80install |
133 |
event_link("systemd-reload", $event, "50"); |
event_link("systemd-reload", $event, "50"); |
134 |
|
|
135 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ntpd"); |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ntpd"); |
136 |
|
diff -Nur 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 |
137 |
|
--- e-smith-ntp-2.6.0.old/root/usr/lib/systemd/system/ntpd.service.d/50koozali.conf 2020-11-26 23:56:30.134000000 -0500 |
138 |
|
+++ e-smith-ntp-2.6.0/root/usr/lib/systemd/system/ntpd.service.d/50koozali.conf 1969-12-31 19:00:00.000000000 -0500 |
139 |
|
@@ -1,2 +0,0 @@ |
140 |
|
-[Service] |
141 |
|
-MemoryLimit=250000 |