Documentation
¶
Index ¶
Constants ¶
const DaemonPlistPath = daemonPlistPath
DaemonPlistPath is the system-wide launchd plist installed when the agent runs as root. Exported so other packages (notably telemetry's invocation detector) can check for an installed footprint without re-deriving the path.
const Label = label
Label is the launchd job label for the agent. Exported so other packages (e.g. schedinfo) can address the job without re-deriving the constant.
Variables ¶
This section is empty.
Functions ¶
func DomainTarget ¶ added in v1.13.0
DomainTarget returns the launchd domain and the domain/label service target for the current privilege level: the system domain for a root LaunchDaemon, gui/<uid> for a per-user LaunchAgent. Single source of truth for the domain math reused by Install/Uninstall and the scheduler-info collector.
func Install ¶
Install configures launchd for periodic scanning and loads the job (upgrading in place if already installed). With RunAtLoad=true, loading the job triggers the run immediately — so this load IS the initial scan and the install command deliberately does NOT scan inline on macOS (see main.go). Doing both would double-scan at install: once inline, once at load, with the second blocked on the singleton lock.
func UserPlistPath ¶ added in v1.11.4
func UserPlistPath() string
UserPlistPath returns the per-user launchd plist path installed when the agent runs without root. Empty when the home directory cannot be resolved.
Types ¶
This section is empty.