daemon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package daemon manages OS-level service installation for tmux-webui.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuardPort

func GuardPort(host string, port int) error

GuardPort refuses daemon install when the configured host:port is already being served by something else. Without this check, installing a second manager for a port already owned by launchd/systemd (or Workshop's own workshop_services) races two processes for the same bind — a confusing double-manager bug to debug after the fact.

Types

type Manager

type Manager interface {
	Install(binaryPath string, dryRun bool) error
	Uninstall(dryRun bool) error
	Status() (string, error)
	Logs(follow bool) error
}

Manager installs, uninstalls, and reports status of the background service.

func New

func New() (Manager, error)

New returns the platform-appropriate Manager.

Jump to

Keyboard shortcuts

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