Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for initService (1.7 sec)

  1. pkg/windows/service/service.go

    	"golang.org/x/sys/windows/svc"
    )
    
    type handler struct {
    	tosvc   chan bool
    	fromsvc chan error
    }
    
    // InitService is the entry point for running the daemon as a Windows
    // service. It returns an indication of whether it is running as a service;
    // and an error.
    func InitService(serviceName string) error {
    	h := &handler{
    		tosvc:   make(chan bool),
    		fromsvc: make(chan error),
    	}
    
    	var err error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 11:25:33 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. cmd/kube-proxy/app/init_windows.go

    import (
    	"github.com/spf13/pflag"
    
    	"k8s.io/kubernetes/pkg/windows/service"
    )
    
    const (
    	serviceName = "kube-proxy"
    )
    
    func initForOS(windowsService bool) error {
    	if windowsService {
    		return service.InitService(serviceName)
    	}
    	return nil
    }
    
    func (o *Options) addOSFlags(fs *pflag.FlagSet) {
    	fs.BoolVar(&o.WindowsService, "windows-service", o.WindowsService, "Enable Windows Service Control Manager API integration")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:41:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. cmd/kubelet/app/init_windows.go

    	}
    	if err := windows.AssignProcessToJobObject(job, windows.CurrentProcess()); err != nil {
    		return fmt.Errorf("windows.AssignProcessToJobObject failed: %w", err)
    	}
    
    	if windowsService {
    		return service.InitService(serviceName)
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 01:54:34 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top