mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
45 lines
963 B
Go
45 lines
963 B
Go
//go:build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Service management functions are not available on non-Windows platforms
|
|
func installService() error {
|
|
return fmt.Errorf("service management is only available on Windows")
|
|
}
|
|
|
|
func removeService() error {
|
|
return fmt.Errorf("service management is only available on Windows")
|
|
}
|
|
|
|
func startService() error {
|
|
return fmt.Errorf("service management is only available on Windows")
|
|
}
|
|
|
|
func stopService() error {
|
|
return fmt.Errorf("service management is only available on Windows")
|
|
}
|
|
|
|
func getServiceStatus() (string, error) {
|
|
return "", fmt.Errorf("service management is only available on Windows")
|
|
}
|
|
|
|
func debugService() error {
|
|
return fmt.Errorf("debug service is only available on Windows")
|
|
}
|
|
|
|
func isWindowsService() bool {
|
|
return false
|
|
}
|
|
|
|
func runService(name string, isDebug bool, args []string) {
|
|
// No-op on non-Windows platforms
|
|
}
|
|
|
|
func setupWindowsEventLog() {
|
|
// No-op on non-Windows platforms
|
|
}
|