Daniel Theophanes 354e64f427 service: on darwin add ServiceCreate option.
OS X launchd doesn't create a full session for most services.
This may be a performance or security decision. Regardless
in order to create a full user session for a service set
this option to true. Leaving as false as this is the os
and historical default.
2015-06-01 14:38:33 -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

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%