daemon

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DaemonChildFlag = "--_daemon-child"

Variables

This section is empty.

Functions

func CheckExistingMount

func CheckExistingMount(mountpoint string) error

func CleanStaleMounts

func CleanStaleMounts() error

func ForkDaemon

func ForkDaemon(identifier string, origArgs []string) error

func IsDaemonChild

func IsDaemonChild() bool

func RemovePIDFile

func RemovePIDFile(mountpoint string)

func Unmount

func Unmount(mountpoint string, force bool, timeout int) error

func UnmountAll

func UnmountAll(force bool, timeout int) error

func WritePIDFile

func WritePIDFile(mountpoint, backend string, domains []string) error

Types

type HealthChecker

type HealthChecker struct {
	// contains filtered or unexported fields
}

func NewHealthChecker

func NewHealthChecker(cliPath string, interval time.Duration) *HealthChecker

func (*HealthChecker) Run

func (h *HealthChecker) Run(ctx context.Context)

type PIDInfo

type PIDInfo struct {
	PID        int       `json:"pid"`
	Mountpoint string    `json:"mountpoint"`
	Backend    string    `json:"backend"`
	StartedAt  time.Time `json:"started_at"`
	Domains    []string  `json:"domains"`
	LogFile    string    `json:"log_file,omitempty"`
}

func ListMounts

func ListMounts() ([]PIDInfo, error)

func ReadPIDFile

func ReadPIDFile(path string) (*PIDInfo, error)

func (PIDInfo) Status

func (p PIDInfo) Status() string

func (PIDInfo) Uptime

func (p PIDInfo) Uptime() string

Jump to

Keyboard shortcuts

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