* 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,19 +1,20 @@
{
# 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";
}
if ($server =~ /pool.ntp.org/)
{
# The 0, 1, 2, 3 prefixes ensure NTP pool round-robin
$OUT .= "server $_.$server\n" for (0..3);
}
else
{
$OUT .= "server $server\n";
foreach my $server (split /,/, $servers) {
if ($server =~ /pool.ntp.org/)
{
# The 0, 1, 2, 3 prefixes ensure NTP pool round-robin
$OUT .= "server $_.$server\n" for (0..3);
}
else
{
$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