- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for EnableCommand (0.14 sec)
-
cmd/kubeadm/app/util/initsystem/initsystem_unix.go
} // EnableCommand return a string describing how to enable a service func (openrc OpenRCInitSystem) EnableCommand(service string) string { return fmt.Sprintf("rc-update add %s default", service) } // SystemdInitSystem defines systemd type SystemdInitSystem struct{} // EnableCommand return a string describing how to enable a service
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 03:15:07 UTC 2023 - 5.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/initsystem/initsystem.go
limitations under the License. */ package initsystem // InitSystem is the interface that describe behaviors of an init system type InitSystem interface { // EnableCommand returns a string describing how to enable a service EnableCommand(service string) string // ServiceStart tries to start a specific service ServiceStart(service string) error // ServiceStop tries to stop a specific service
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 26 15:51:39 UTC 2023 - 1.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/initsystem/initsystem_windows.go
"golang.org/x/sys/windows/svc/mgr" ) // WindowsInitSystem is the windows implementation of InitSystem type WindowsInitSystem struct{} // EnableCommand return a string describing how to enable a service func (sysd WindowsInitSystem) EnableCommand(service string) string { return fmt.Sprintf("Set-Service '%s' -StartupType Automatic", service) } // ServiceStart tries to start a specific service
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 08:56:16 UTC 2022 - 6.4K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks.go
} if !initSystem.ServiceIsEnabled(sc.Service) { warnings = append(warnings, errors.Errorf("%s service is not enabled, please run '%s'", sc.Service, initSystem.EnableCommand(sc.Service))) } if sc.CheckIfActive && !initSystem.ServiceIsActive(sc.Service) { errorList = append(errorList, errors.Errorf("%s service is not active, please run 'systemctl start %s.service'",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:20:55 UTC 2024 - 39.5K bytes - Viewed (0)