ntp service on centos is ntp.service, but cloud-init uses nptd.service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Scott Moser |
Bug Description
The ntp (client) service file installed by the centos 7 'ntp' package is named
'ntpd' (note the d), but cloud-init's cc_ntp module identifies that
'service_name' as 'ntp'.
See below on centos 7. For centos 8, there is no 'ntp' package that I see,
it seems to have been replaced by chrony.
[root@cent71 ~]# rpm -ql ntp | grep systemd
/usr/lib/
/usr/lib/
[root@cent71 ~]# systemctl status ntp.service
Unit ntp.service could not be found.
[root@cent71 ~]# systemctl cat ntp.service
No files found for ntp.service.
[root@cent71 ~]# systemctl cat ntpd.service
# /usr/lib/
[Unit]
Description=Network Time Service
After=syslog.target ntpdate.service sntp.service
[Service]
Type=forking
EnvironmentFile
ExecStart=
PrivateTmp=true
[Install]
WantedBy=
https:/ /github. com/canonical/ cloud-init/ pull/589