ntpsec is available starting Ubuntu Focal (20.04) and Debian Buster (10)
as an alternate NTP daemon.
Fixes: https://tracker.ceph.com/issues/47525
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
a8a64d5417d6f9ad977ea685eb74d564b1344cf3)
'systemd-timesyncd.service',
'ntpd.service', # el7 (at least)
'ntp.service', # 18.04 (at least)
+ 'ntpsec.service', # 20.04 (at least) / buster
]
if not check_units(units, enabler):
logger.warning('No time sync service is running; checked for %s' % units)