- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ServiceStart (0.29 sec)
-
cmd/kubeadm/app/util/initsystem/initsystem_unix.go
package initsystem import ( "fmt" "os/exec" "strings" "github.com/pkg/errors" ) // OpenRCInitSystem defines openrc type OpenRCInitSystem struct{} // ServiceStart tries to start a specific service func (openrc OpenRCInitSystem) ServiceStart(service string) error { args := []string{service, "start"} return exec.Command("rc-service", args...).Run() } // ServiceStop tries to stop a specific 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
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 ServiceStop(service string) error // ServiceRestart tries to reload the environment and restart the 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
return fmt.Sprintf("Set-Service '%s' -StartupType Automatic", service) } // ServiceStart tries to start a specific service // Following Windows documentation: https://docs.microsoft.com/en-us/windows/desktop/Services/starting-a-service func (sysd WindowsInitSystem) ServiceStart(service string) error { m, err := mgr.Connect() if err != nil { return err } defer m.Disconnect()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 08:56:16 UTC 2022 - 6.4K bytes - Viewed (0)