Skip to content
Snippets Groups Projects
Unverified Commit 82864316 authored by Jian Qiu's avatar Jian Qiu Committed by GitHub
Browse files

fix: manage_ntp_configuration not effective (#14428)


Co-authored-by: default avatarQiu Jian <qiujian@yunionyun.com>
parent 99f5ecd6
No related branches found
No related tags found
No related merge requests found
......@@ -476,9 +476,12 @@ func (h *SHostInfo) checkSystemServices() error {
srvinst.Start(false)
}
}
for _, srv := range []string{"ntpd"} {
srvinst := system_service.GetService(srv)
funcEn(srv, srvinst)
if options.HostOptions.ManageNtpConfiguration {
for _, srv := range []string{"ntpd"} {
srvinst := system_service.GetService(srv)
funcEn(srv, srvinst)
}
}
svcs := os.Getenv("HOST_SYSTEM_SERVICES_OFF")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment