1 |
diff -urN e-smith-ntp-2.6.0.old/createlinks e-smith-ntp-2.6.0/createlinks |
2 |
--- e-smith-ntp-2.6.0.old/createlinks 2022-07-18 15:15:24.330528368 +0300 |
3 |
+++ e-smith-ntp-2.6.0/createlinks 2022-07-19 15:49:47.197795457 +0300 |
4 |
@@ -63,7 +63,7 @@ |
5 |
|
6 |
$event = "e-smith-ntp-update"; |
7 |
|
8 |
-foreach my $file (qw(/etc/ntp/step-tickers /etc/ntp.conf /usr/lib//systemd/system/ntpd.service.d/50koozali.conf /etc/systemd/system-preset/49-koozali.preset)) |
9 |
+foreach my $file (qw(/etc/ntp/step-tickers /etc/ntp.conf /usr/lib//systemd/system/ntpd.service.d/50koozali.conf /etc/systemd/system-preset/49-koozali.preset /etc/rsyslog.conf /etc/logrotate.d/ntpd)) |
10 |
{ |
11 |
templates2events( $file, $event ); |
12 |
} |
13 |
diff -urN e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/logrotate.d/ntpd/10All e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/logrotate.d/ntpd/10All |
14 |
--- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/logrotate.d/ntpd/10All 1970-01-01 02:00:00.000000000 +0200 |
15 |
+++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/logrotate.d/ntpd/10All 2022-07-18 14:50:42.000000000 +0300 |
16 |
@@ -0,0 +1,8 @@ |
17 |
+/var/log/ntp.log \{ |
18 |
+ missingok |
19 |
+ weekly |
20 |
+ rotate 24 |
21 |
+ compress |
22 |
+ notifempty |
23 |
+ copytruncate |
24 |
+\} |
25 |
diff -urN e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32ntp e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32ntp |
26 |
--- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32ntp 1970-01-01 02:00:00.000000000 +0200 |
27 |
+++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32ntp 2022-07-18 14:35:45.000000000 +0300 |
28 |
@@ -0,0 +1,4 @@ |
29 |
+#ntp |
30 |
+:programname, isequal, "ntpd" /var/log/ntp.log |
31 |
+& stop |
32 |
+ |