/[smeserver]/rpms/e-smith-ntp/sme10/e-smith-ntp-2.6.0-bz12115-loging.patch
ViewVC logotype

Contents of /rpms/e-smith-ntp/sme10/e-smith-ntp-2.6.0-bz12115-loging.patch

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


Revision 1.1 - (show annotations) (download)
Thu Jul 21 04:52:56 2022 UTC (21 months, 4 weeks ago) by jpp
Branch: MAIN
CVS Tags: e-smith-ntp-2_6_0-18_el7_sme, e-smith-ntp-2_6_0-17_el7_sme, HEAD
* Wed Jul 20 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-17.sme
- dedicated log and logrotate [SME: 12115]
  thanks to  bunkobugsy for this patch

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 +

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