We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f551940 + a69f56e commit 0241da3Copy full SHA for 0241da3
cmd/kubeadm/app/util/initsystem/initsystem_unix.go
@@ -125,7 +125,7 @@ func (sysd SystemdInitSystem) ServiceExists(service string) bool {
125
args := []string{"status", service}
126
outBytes, _ := exec.Command("systemctl", args...).Output()
127
output := string(outBytes)
128
- return !strings.Contains(output, "Loaded: not-found")
+ return !strings.Contains(output, "Loaded: not-found") && !strings.Contains(output, "could not be found")
129
}
130
131
// ServiceIsEnabled ensures the service is enabled to start on each boot.
0 commit comments