On debian/ubuntu, if you need PTP, it's possible to use the linuxptp package for time-synchonization.
In that case the systemd service is called timemaster and is a wrapper for chrony/ntpd/phc2sys/ptp4l.
Signed-off-by: Florent Carli <florent.carli@rte-france.com>
(cherry picked from commit
4ee1c761e50e3c3feed89ccc5c450ac96681b778)
'ntp.service', # 18.04 (at least)
'ntpsec.service', # 20.04 (at least) / buster
'openntpd.service', # ubuntu / debian
+ 'timemaster.service', # linuxptp on ubuntu/debian
]
if not check_units(ctx, units, enabler):
logger.warning('No time sync service is running; checked for %s' % units)