daemon

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
var ErrAlreadyRunning = errors.New("another daemon is already running")

ErrAlreadyRunning means another daemon holds the state directory's lock.

View Source
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 ClearStopped

func ClearStopped()

ClearStopped removes the record of a deliberate stop.

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

func Run(cfgPath string) error

Run blocks until the daemon is asked to stop. It returns ErrAlreadyRunning when another daemon owns the state directory.

func SavedPort

func SavedPort(stateDir string) int

SavedPort returns the automatically chosen port recorded in stateDir, or 0. Only a port from app.FallbackPorts counts.

func Stopped

func Stopped() bool

Stopped reports whether the daemon was stopped deliberately and none started since.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL