lxg e6a4fba2f9 init | 3 år sedan | |
---|---|---|
LICENSE | 3 år sedan | |
README.md | 3 år sedan | |
appveyor.yml | 3 år sedan | |
console.go | 3 år sedan | |
linux-test-su.sh | 3 år sedan | |
service.go | 3 år sedan | |
service_darwin.go | 3 år sedan | |
service_linux.go | 3 år sedan | |
service_systemd_linux.go | 3 år sedan | |
service_sysv_linux.go | 3 år sedan | |
service_unix.go | 3 år sedan | |
service_upstart_linux.go | 3 år sedan | |
service_windows.go | 3 år sedan |
service will install / un-install, start / stop, and run a program as a service (daemon). Currently supports Windows XP+, Linux/(systemd | Upstart | SysV), and OSX/Launchd.
Windows controls services by setting up callbacks that is non-trivial. This is very different then other systems. This package provides the same API despite the substantial differences. It also can be used to detect how a program is called, from an interactive terminal or from a service manager.