pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/initsystem/initsystem_windows.go (about) 1 // Package initsystem provides methods for working with different init systems 2 package initsystem 3 4 // ////////////////////////////////////////////////////////////////////////////////// // 5 // // 6 // Copyright (c) 2022 ESSENTIAL KAOS // 7 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 8 // // 9 // ////////////////////////////////////////////////////////////////////////////////// // 10 11 // ❗ SysV returns true if SysV is used on system 12 func SysV() bool { 13 panic("UNSUPPORTED") 14 return false 15 } 16 17 // ❗ Upstart returns true if Upstart is used on system 18 func Upstart() bool { 19 panic("UNSUPPORTED") 20 return false 21 } 22 23 // ❗ Systemd returns true if Systemd is used on system 24 func Systemd() bool { 25 panic("UNSUPPORTED") 26 return false 27 } 28 29 // ❗ IsPresent returns true if service is present in any init system 30 func IsPresent(name string) bool { 31 panic("UNSUPPORTED") 32 return false 33 } 34 35 // ❗ IsWorks returns service state 36 func IsWorks(name string) (bool, error) { 37 panic("UNSUPPORTED") 38 return false, nil 39 } 40 41 // ❗ IsEnabled returns true if auto start enabled for given service 42 func IsEnabled(name string) (bool, error) { 43 panic("UNSUPPORTED") 44 return false, nil 45 }