lxg e6a4fba2f9 init | před 3 roky | |
---|---|---|
LICENSE | před 3 roky | |
README.md | před 3 roky | |
appveyor.yml | před 3 roky | |
console.go | před 3 roky | |
linux-test-su.sh | před 3 roky | |
service.go | před 3 roky | |
service_darwin.go | před 3 roky | |
service_linux.go | před 3 roky | |
service_systemd_linux.go | před 3 roky | |
service_sysv_linux.go | před 3 roky | |
service_unix.go | před 3 roky | |
service_upstart_linux.go | před 3 roky | |
service_windows.go | před 3 roky |
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.