Documentation
¶
Overview ¶
Package daemon provides facilities for daemon operation.
Index ¶
Constants ¶
const RegistrationSupported = false
RegistrationSupported indicates whether or not daemon registration is supported on this platform.
Variables ¶
This section is empty.
Functions ¶
func EndpointPath ¶ added in v0.10.0
EndpointPath computes the path to the daemon IPC endpoint, creating any intermediate directories as necessary.
func RegisteredStart ¶
RegisteredStart potentially handles daemon start operations if the daemon is registered for automatic start with the system. It returns false if the start operation was not handled and should be handled by the normal start command.
func RegisteredStop ¶
RegisteredStop potentially handles stop start operations if the daemon is registered for automatic start with the system. It returns false if the stop operation was not handled and should be handled by the normal stop command.
func Unregister ¶
func Unregister() error
Unregister performs automatic daemon startup de-registration.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock represents the global daemon lock. It is held by a single daemon instance at a time.
func AcquireLock ¶
AcquireLock attempts to acquire the global daemon lock.