/[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.7 by jpp, Fri Nov 27 04:57:15 2020 UTC Revision 1.12 by jpp, Mon Feb 6 07:13:17 2023 UTC
# Line 4  diff -Nur e-smith-ntp-2.6.0.old/root/etc Line 4  diff -Nur e-smith-ntp-2.6.0.old/root/etc
4  @@ -1,3 +1,3 @@  @@ -1,3 +1,3 @@
5   {   {
6  -    $OUT = "driftfile /etc/ntp/drift";  -    $OUT = "driftfile /etc/ntp/drift";
7  +    $OUT = "driftfile /var/lib/drift";  +    $OUT = "driftfile /var/lib/ntp/drift";
8   }   }
9  diff -Nur e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service  diff -Nur e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service
10  --- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service     1969-12-31 19:00:00.000000000 -0500  --- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service     1969-12-31 19:00:00.000000000 -0500
# Line 101  diff -Nur e-smith-ntp-2.6.0.old/root/etc Line 101  diff -Nur e-smith-ntp-2.6.0.old/root/etc
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
# Line 139  diff -Nur e-smith-ntp-2.6.0.old/root/usr Line 139  diff -Nur e-smith-ntp-2.6.0.old/root/usr
139  @@ -1,2 +0,0 @@  @@ -1,2 +0,0 @@
140  -[Service]  -[Service]
141  -MemoryLimit=250000  -MemoryLimit=250000
142    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
143    --- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-koozali-ntp.preset  2020-11-27 09:37:05.531000000 -0500
144    +++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-koozali-ntp.preset      2020-11-27 09:38:47.124000000 -0500
145    @@ -1,14 +1,4 @@
146    -# nut UPS specific subservices
147    -{
148    -my $status = $ntp{status} || 'disabled';
149    +# nut ntpd specific subservices
150    +# this would conflict with ntpd
151    +disable        ntpdate.service
152    
153    -if ($status eq 'enabled') {
154    -        $OUT .= "disable        ntpdate.service\n";
155    -        $OUT .= "enable         ntpd.service\n";
156    -  }
157    -else
158    -  {
159    -        $OUT .= "disable       ntpdate.service\n";
160    -        $OUT .= "disable       ntpd.service\n";
161    -  }
162    -}


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