service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 9 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 service installs, controls and runs vigil as a background service. It uses kardianos/service for launchd, systemd and Windows services, but on Windows the synthetic-input engine must run in the interactive user session, so it is installed as a logon Scheduled Task instead of a session-0 service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(p Params) (postInstallNote string, err error)

Install installs the service/task.

func Restart

func Restart(p Params) error

func Run

func Run(p Params, eng *engine.Engine) error

Run executes the engine under the platform service supervisor (or foreground when launched interactively / from a scheduled task).

func Start

func Start(p Params) error

Start, Stop, Restart control an installed service/task.

func StatusString

func StatusString(p Params) (string, error)

StatusString returns a human-readable run state.

func Stop

func Stop(p Params) error

func Uninstall

func Uninstall(p Params) error

Uninstall stops and removes the service/task.

Types

type Params

type Params struct {
	Scope      config.Scope
	ConfigPath string
	UsesInput  bool // engine includes the synthetic-input strategy
}

Params describes the target install.

func (Params) Validate

func (p Params) Validate() error

Validate rejects combinations that cannot inject input. A system/daemon scope with the input engine runs outside the GUI session and would silently fail.

Jump to

Keyboard shortcuts

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