rmmagent/agent/services/services_unix.go
2022-06-22 15:40:42 -07:00

32 lines
No EOL
692 B
Go

//go:build !windows
// +build !windows
package services
import (
"github.com/kardianos/service"
)
func GetServiceDetail(name string) Service { return Service{} }
func ControlService(name, action string) WinSvcResp {
return WinSvcResp{Success: false, ErrorMsg: "/na"}
}
func EditService(name, startupType string) WinSvcResp {
return WinSvcResp{Success: false, ErrorMsg: "/na"}
}
func GetServices() ([]Service, []error, error) {
return []Service{}, []error{}, nil
}
func Start(_ service.Service) error { return nil }
func Stop(_ service.Service) error { return nil }
func InstallService() error { return nil }
func GetServiceStatus(name string) (string, error) {
return "", nil
}