Daniel Theophanes 1ab12303aa service: block on windows stop so restart is more robust.
Previous behavior simply signalled the service to stop.
The new behavior actually waits for the service to stop.
This makes the Restart method for windows to be more robust
when a service takes more time to clean up.
2015-06-05 09:22:14 -07:00
2015-01-18 17:48:14 -08:00
2015-01-13 21:54:35 -08:00
2015-01-13 09:41:14 -08:00
2015-06-01 14:43:41 -07:00

service

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.
S
Description
Run go programs as a service on major platforms.
Readme 3.8 MiB
Languages
Go 98.4%
Makefile 1%
Shell 0.3%
Dockerfile 0.3%