Run go programs as a service on major platforms.
  • Go 98%
  • Makefile 1.2%
  • Shell 0.5%
  • Dockerfile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2019-06-25 08:46:03 +02:00
example Support the systemd option setting for 'Restart' and 'SuccessExitStatus (#168) 2019-05-14 08:51:56 -07:00
linux_test service: update Dockerfiles to use better images. 2015-03-07 11:49:46 -08:00
.gitignore service: enable systemd service. 2015-01-18 17:48:14 -08:00
.travis.yml Bump Go versions (#153) 2018-11-14 16:55:16 -08:00
appveyor.yml Add support for travis, coveralls and appveyor 2016-07-08 06:30:11 +01:00
console.go service: fix misc typos. 2015-09-01 09:34:29 -07:00
go.mod remove dep on osext 2019-02-08 09:29:24 -08:00
go.sum remove dep on osext 2019-02-08 09:29:24 -08:00
LICENSE service: move to v2 API (beta). 2015-01-13 09:41:14 -08:00
linux-test-su.sh Add support for travis, coveralls and appveyor 2016-07-08 06:30:11 +01:00
name_test.go Add support for travis, coveralls and appveyor 2016-07-08 06:30:11 +01:00
README.md Add link to godoc in README 2016-02-29 19:27:48 -05:00
service.go Clarify Interface.Start() documentation comment 2019-06-25 08:46:03 +02:00
service_darwin.go Add ability for service to report the system managing the service (#147) 2018-09-10 15:42:44 -07:00
service_go1.8.go service: do not call osext if go1.8+ is used 2017-02-07 11:25:59 -08:00
service_linux.go Add ability for service to report the system managing the service (#147) 2018-09-10 15:42:44 -07:00
service_nosu_test.go Add support for travis, coveralls and appveyor 2016-07-08 06:30:11 +01:00
service_su_test.go service: use flag package to correctly run su test 2018-03-02 15:11:09 -08:00
service_systemd_linux.go Support the systemd option setting for 'Restart' and 'SuccessExitStatus (#168) 2019-05-14 08:51:56 -07:00
service_sysv_linux.go Add ability for service to report the system managing the service (#147) 2018-09-10 15:42:44 -07:00
service_test.go Improve testing of Start/Stop/Restart 2016-07-12 05:45:16 +01:00
service_unix.go Add support for retrieving service status (#143) 2018-08-22 11:05:01 -07:00
service_upstart_linux.go Add ability for service to report the system managing the service (#147) 2018-09-10 15:42:44 -07:00
service_windows.go Add ability for service to report the system managing the service (#147) 2018-09-10 15:42:44 -07:00
service_windows_test.go service: fix misc typos. 2015-09-01 09:34:29 -07:00
servicetest_unix_test.go Add support for travis, coveralls and appveyor 2016-07-08 06:30:11 +01:00
servicetest_windows_test.go Add support for travis, coveralls and appveyor 2016-07-08 06:30:11 +01:00
version.go update upstart version check logic 2018-08-20 11:44:20 -07:00
version_test.go update upstart version check logic 2018-08-20 11:44:20 -07:00

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.