Documentation
¶
Overview ¶
Package daemon runs the long-lived process: it owns the supervisor and serves the HTTP API, dashboard and proxy until it receives a signal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAlreadyRunning = errors.New("another daemon is already running")
ErrAlreadyRunning means another daemon holds the state directory's lock.
var ErrPortHeld = errors.New("the daemon's port is held by another of its daemons")
ErrPortHeld means this product, running for this account with other settings, holds the port the daemon would use.
Functions ¶
func MarkStopped ¶
func MarkStopped() error
MarkStopped records a deliberate stop, so background clients do not start a daemon again until something starts one explicitly.
func Run ¶
Run blocks until the daemon is asked to stop. It returns ErrAlreadyRunning when another daemon owns the state directory.
Types ¶
This section is empty.