MCPcopy
hub / github.com/kardianos/service

github.com/kardianos/service @v1.2.4 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.4 ↗
367 symbols 963 edges 30 files 66 documented · 18%
README

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.

Extension points exported contracts — how you extend this code

System (Interface)
System represents the service manager that is available. [6 implementers]
service.go
Interface (Interface)
Interface represents the service interface for a program. Start runs before the hosting process is granted control and S [16 …
service.go
Service (Interface)
TODO: Add Configure to Service interface. Service represents a service that can be run or controlled. [10 implementers]
service.go
Logger (Interface)
Logger writes to the system log. [3 implementers]
service.go
Shutdowner (Interface)
Shutdowner represents a service interface for a program that differentiates between "stop" and "shutdown". A shutdown is
service.go

Core symbols most depended-on inside this repo

New
called by 44
service.go
Errorf
called by 43
service.go
run
called by 29
service_unix.go
string
called by 26
service.go
Stop
called by 18
service.go
Run
called by 17
service.go
Start
called by 14
service.go
bool
called by 13
service.go

Shape

Method 252
Function 79
Struct 29
Interface 5
TypeAlias 2

Languages

Go100%

Modules by API surface

service.go45 symbols
service_windows.go40 symbols
service_darwin.go25 symbols
service_systemd_linux.go23 symbols
service_solaris.go22 symbols
service_aix.go22 symbols
service_freebsd.go21 symbols
service_upstart_linux.go19 symbols
service_openrc_linux.go18 symbols
service_rcs_linux.go16 symbols
service_sysv_linux.go15 symbols
service_unix.go13 symbols

Dependencies from manifests, versioned

golang.org/x/sysv0.34.0 · 1×

For agents

$ claude mcp add service \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact