baishaojie dcf2cbd820 first commit | hai 11 meses | |
---|---|---|
.. | ||
.gitignore | hai 11 meses | |
.travis.yml | hai 11 meses | |
LICENSE | hai 11 meses | |
README.md | hai 11 meses | |
appveyor.yml | hai 11 meses | |
console.go | hai 11 meses | |
go.mod | hai 11 meses | |
go.sum | hai 11 meses | |
linux-test-su.sh | hai 11 meses | |
service.go | hai 11 meses | |
service_aix.go | hai 11 meses | |
service_darwin.go | hai 11 meses | |
service_freebsd.go | hai 11 meses | |
service_go1.8.go | hai 11 meses | |
service_linux.go | hai 11 meses | |
service_solaris.go | hai 11 meses | |
service_systemd_linux.go | hai 11 meses | |
service_sysv_linux.go | hai 11 meses | |
service_unix.go | hai 11 meses | |
service_upstart_linux.go | hai 11 meses | |
service_windows.go | hai 11 meses | |
version.go | hai 11 meses |
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.