Documentation
¶
Overview ¶
Package winservice runs gitd as a Windows service, as systemd runs it on Linux: started with the machine, restarted when it fails, answering whoever is in the local group gitd.
The service runs as LocalSystem. What it makes is reached through the group, as a socket readable by a group is on Linux: members may connect to the socket, read the pools and templates their workspaces borrow from, and change only the workspaces themselves.
Index ¶
Constants ¶
const ( Name = "gitd" Group = "gitd" )
Name is the service's name, and Group the local group whose members may use it.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install registers gitd at executable as a service started with the machine and restarted when it fails, serving with the configuration at configPath. It creates the group and adds member to it, gives the group its access to state and roots, and keeps the configuration, which holds credentials, to SYSTEM and Administrators.
func Run ¶
Run answers the service manager until serve returns, which it must when its context ends: the context ends when the service is stopped or the machine shuts down.
func Running ¶
func Running() bool
Running says whether this process was started by the service manager.
Types ¶
This section is empty.