service

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Overview

Package service installs Oriel as a background service so it starts automatically and stays running: a launchd LaunchAgent on macOS, and a systemd service on Linux (a per-user unit, or a system unit with --system / when run as root). It binds to 127.0.0.1 like the foreground server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsManaged

func IsManaged() bool

func PackageManager added in v0.3.1

func PackageManager() string

PackageManager reports which package manager owns the running binary, or "" for a standalone install. Only Homebrew is detected (its cask/formula staging dirs). Such installs must update via `brew upgrade` — an in-app self-update would overwrite Homebrew-tracked files and desync brew's state.

func Restart

func Restart() error

Restart restarts the installed service so a freshly-replaced binary takes effect. On macOS a clean exit is enough (launchd KeepAlive relaunches us); on Linux systemd needs an explicit restart (the unit is Restart=on-failure).

func Run

func Run(args []string) error

Run handles the `service` subcommand: install | uninstall | status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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