tree: 8fe8caa66230101029cb74b2c99a72f1f2c94f80
  1. .gitignore
  2. .travis.yml
  3. appveyor.yml
  4. console.go
  5. LICENSE
  6. linux-test-su.sh
  7. README.md
  8. service.go
  9. service_aix.go
  10. service_darwin.go
  11. service_freebsd.go
  12. service_go1.8.go
  13. service_linux.go
  14. service_openrc_linux.go
  15. service_solaris.go
  16. service_systemd_linux.go
  17. service_sysv_linux.go
  18. service_unix.go
  19. service_upstart_linux.go
  20. service_windows.go
  21. version.go
vendor/github.com/kardianos/service/README.md

service GoDoc

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.

BUGS

  • Dependencies field is not implemented for Linux systems and Launchd.
  • OS X when running as a UserService Interactive will not be accurate.