/[smeserver]/rpms/e-smith-ntp/sme10/e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch
ViewVC logotype

Diff of /rpms/e-smith-ntp/sme10/e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch

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

Revision 1.1 by jpp, Fri Nov 27 04:14:40 2020 UTC Revision 1.4 by jpp, Fri Nov 27 04:44:18 2020 UTC
# Line 75  diff -Nur e-smith-ntp-2.6.0.old/root/sbi Line 75  diff -Nur e-smith-ntp-2.6.0.old/root/sbi
75  +ntpstep=/etc/ntp/step-tickers  +ntpstep=/etc/ntp/step-tickers
76  +tickers=`/bin/sed -e 's/\#.*$//g' $ntpstep`  +tickers=`/bin/sed -e 's/\#.*$//g' $ntpstep`
77  +/usr/sbin/ntpdate -b -p 8 $tickers  +/usr/sbin/ntpdate -b -p 8 $tickers
78    diff -Nur e-smith-ntp-2.6.0.old/createlinks e-smith-ntp-2.6.0/createlinks
79    --- e-smith-ntp-2.6.0.old/createlinks   2020-11-26 23:15:25.616000000 -0500
80    +++ e-smith-ntp-2.6.0/createlinks       2020-11-26 23:28:33.145000000 -0500
81    @@ -63,11 +63,12 @@
82    
83     $event = "e-smith-ntp-update";
84    
85    -foreach my $file (qw(/etc/ntp/step-tickers /etc/ntp.conf /usr/lib//systemd/system/ntpd.service.d/50koozali.conf))
86    +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))
87     {
88         templates2events( $file, $event );
89     }
90    
91    +event_link("systemd-default", $event, "10");
92     event_link("conf-timezone", $event, "30");
93    -event_link("set-time-date", $event, "40");
94    +
95     event_link("systemd-reload", $event, "50");
96    diff -Nur e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-koozali-ntp.preset e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-koozali-ntp.preset
97    --- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-koozali-ntp.preset  1969-12-31 19:00:00.000000000 -0500
98    +++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-koozali-ntp.preset      2020-11-26 23:22:46.951000000 -0500
99    @@ -0,0 +1,14 @@
100    +# nut UPS specific subservices
101    +{
102    +my $status = $ntp{status} || 'disabled';
103    +
104    +if ($status eq 'enabled') {
105    +        $OUT .= "disable        ntpdate.service";
106    +        $OUT .= "enable         ntpd.service";
107    +  }
108    +else
109    +  {
110    +        $OUT .= "disable       ntpdate.service";
111    +        $OUT .= "disable       ntpd.service";
112    +  }
113    +}
114    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
115    --- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/80install     1969-12-31 19:00:00.000000000 -0500
116    +++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/80install 2020-11-26 23:26:16.570000000 -0500
117    @@ -0,0 +1,2 @@
118    +[Install]
119    +WantedBy=sme-server.target
120    diff -Nur e-smith-ntp-2.6.0.old/root/etc/systemd/system-preset/80-koozali-ntp.preset e-smith-ntp-2.6.0/root/etc/systemd/system-preset/80-koozali-ntp.preset
121    --- e-smith-ntp-2.6.0.old/root/etc/systemd/system-preset/80-koozali-ntp.preset  2020-11-26 23:15:25.618000000 -0500
122    +++ e-smith-ntp-2.6.0/root/etc/systemd/system-preset/80-koozali-ntp.preset      1969-12-31 19:00:00.000000000 -0500
123    @@ -1,2 +0,0 @@
124    -enable ntpdate.service
125    -enable ntpd.service


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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