Run go programs as a service on major platforms.
Switch branches/tags
Nothing to show
Clone or download
SteelPhase and kardianos Add ability for service to report the system managing the service (#147)
* Add ability for service to report the system managing the service

* Clarify that the output of SystemName should return the same value as Platform in most cases

* Rename SystemName to Platform to match the rest of the package

* be a little more clear in the Platform comment
Latest commit b1866cf Sep 11, 2018
Permalink
Failed to load latest commit information.
example service: fix misc typos. Sep 1, 2015
linux_test service: update Dockerfiles to use better images. Mar 7, 2015
.gitignore service: enable systemd service. Jan 19, 2015
.travis.yml Test with latest 1.10.x release Mar 20, 2018
LICENSE service: move to v2 API (beta). Jan 13, 2015
README.md Add link to godoc in README Mar 1, 2016
appveyor.yml Add support for travis, coveralls and appveyor Jul 8, 2016
console.go service: fix misc typos. Sep 1, 2015
linux-test-su.sh Add support for travis, coveralls and appveyor Jul 8, 2016
name_test.go Add support for travis, coveralls and appveyor Jul 8, 2016
pre_go1.8.go service: do not call osext if go1.8+ is used Feb 7, 2017
service.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_darwin.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_go1.8.go service: do not call osext if go1.8+ is used Feb 7, 2017
service_linux.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_nosu_test.go Add support for travis, coveralls and appveyor Jul 8, 2016
service_su_test.go service: use flag package to correctly run su test Mar 2, 2018
service_systemd_linux.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_sysv_linux.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_test.go Improve testing of Start/Stop/Restart Jul 12, 2016
service_unix.go Add support for retrieving service status (#143) Aug 22, 2018
service_upstart_linux.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_windows.go Add ability for service to report the system managing the service (#147) Sep 10, 2018
service_windows_test.go service: fix misc typos. Sep 1, 2015
servicetest_unix_test.go Add support for travis, coveralls and appveyor Jul 8, 2016
servicetest_windows_test.go Add support for travis, coveralls and appveyor Jul 8, 2016
version.go update upstart version check logic Aug 20, 2018
version_test.go update upstart version check logic Aug 20, 2018

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.