* Fri Oct 31 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme

- add missing template changes [SME: 12954]
  set SyslogIdentifier
This commit is contained in:
2025-10-31 23:31:39 -04:00
parent 8879d29ca5
commit 0588cca4ce
3 changed files with 18 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
{
# vim: ft=perl:
my $server = $ntpd{NTPServer} || '';
return "# sync to hw clock" if $server =~ m#^\s*$#;
my $servers = $ntpd{NTPServer} || '';
return "# sync to hw clock" if $servers =~ m#^\s*$#;
if ( ($ntpd{'SupportLargeDrift'} || 'disabled') eq 'enabled' ){
$OUT .= "tinker panic 0\n";
}
foreach my $server (split /,/, $servers) {
if ($server =~ /pool.ntp.org/)
{
# The 0, 1, 2, 3 prefixes ensure NTP pool round-robin
@@ -17,3 +17,4 @@
$OUT .= "server $server\n";
}
}
}

View File

@@ -18,3 +18,4 @@
ExecStartPre=-/sbin/e-smith/expand-template /etc/ntp.conf
ExecStartPre=-/sbin/e-smith/systemd/initializedate
Restart=always
SyslogIdentifier=ntpd

View File

@@ -4,7 +4,7 @@ Summary: smeserver specific NTP configuration files and templates
%define name smeserver-ntp
Name: %{name}
%define version 11.0.0
%define release 8
%define release 9
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@@ -21,6 +21,10 @@ Requires: smeserver-lib >= 1.15.1-19
AutoReqProv: no
%changelog
* Fri Oct 31 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme
- add missing template changes [SME: 12954]
set SyslogIdentifier
* Fri Oct 03 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-8.sme
- add support for multiple coma separated NTPServer [SME: 10623]
- fix ntpd long to start if not ntp server set [SME: 12954]