34 lines
803 B
Go
34 lines
803 B
Go
|
|
//go:build !windows
|
||
|
|
|
||
|
|
package winsvc
|
||
|
|
|
||
|
|
import "errors"
|
||
|
|
|
||
|
|
const (
|
||
|
|
ServiceName = "NexusRMMAgent"
|
||
|
|
ServiceDisplayName = "NexusRMM Agent"
|
||
|
|
ServiceDescription = "NexusRMM Remote Monitoring and Management Agent"
|
||
|
|
)
|
||
|
|
|
||
|
|
func IsWindowsService() (bool, error) { return false, nil }
|
||
|
|
|
||
|
|
func Run(_ func(stop <-chan struct{})) error {
|
||
|
|
return errors.New("Windows Service wird nur unter Windows unterstützt")
|
||
|
|
}
|
||
|
|
|
||
|
|
func Install(_ string) error {
|
||
|
|
return errors.New("Windows Service wird nur unter Windows unterstützt")
|
||
|
|
}
|
||
|
|
|
||
|
|
func Uninstall() error {
|
||
|
|
return errors.New("Windows Service wird nur unter Windows unterstützt")
|
||
|
|
}
|
||
|
|
|
||
|
|
func Start() error {
|
||
|
|
return errors.New("Windows Service wird nur unter Windows unterstützt")
|
||
|
|
}
|
||
|
|
|
||
|
|
func Stop() error {
|
||
|
|
return errors.New("Windows Service wird nur unter Windows unterstützt")
|
||
|
|
}
|