svc

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package svc installs and controls the ushr launchd/systemd user services, so the CLI can take a host from enrolled to running without a repo checkout or hand-run launchctl/systemctl incantations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(u Unit) (string, error)

Install writes the service definition for u (launchd plist or systemd user unit) and creates the log/work directories it references. It does not start the service; call Restart. Overwrites an existing definition so template updates ship with the binary.

func LogHint

func LogHint(u Unit) string

LogHint is the command a user runs to watch u's logs.

func Restart

func Restart(u Unit) error

Restart (re)starts u, loading/enabling it first if needed.

func Running

func Running(u Unit) bool

Running reports whether u is loaded and running.

Types

type Unit

type Unit string

Unit is one of the two ushr daemons.

const (
	Agent      Unit = "agent"
	Controller Unit = "controller"
)

Jump to

Keyboard shortcuts

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