//go:build !linux && !windows package service import ( "fmt" "runtime" "mfd-monitor-agent/internal/config" ) // unsupportedManager reports service lifecycle operations as unsupported on this platform. type unsupportedManager struct{} // newManager returns a manager that fails all service operations on unsupported platforms. func newManager() Manager { return unsupportedManager{} } // Install reports that service installation is unsupported on this platform. func (unsupportedManager) Install(string, config.Config, InstallOptions) error { return fmt.Errorf("service install is not implemented for %s", runtime.GOOS) } // Uninstall reports that service removal is unsupported on this platform. func (unsupportedManager) Uninstall(config.Config) error { return fmt.Errorf("service uninstall is not implemented for %s", runtime.GOOS) } // Start reports that service start is unsupported on this platform. func (unsupportedManager) Start(config.Config) error { return fmt.Errorf("service start is not implemented for %s", runtime.GOOS) } // Stop reports that service stop is unsupported on this platform. func (unsupportedManager) Stop(config.Config) error { return fmt.Errorf("service stop is not implemented for %s", runtime.GOOS) }