daemonctl

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package daemonctl lets the unprivileged menu-bar app bring up the privileged capture daemon itself, so the user only ever launches one app. If the daemon isn't already running, it installs a system LaunchDaemon (one macOS admin prompt) that runs netscoped at boot — after that, no prompts ever again.

This is the pragmatic path that works for an un-notarized build. A fully click-once experience (SMAppService) needs a Developer ID signature.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ensure

func Ensure(client *http.Client, sock string) error

Ensure makes the daemon available: returns nil if it is already running (or comes up shortly — e.g. just installed by the installer), otherwise installs and starts the LaunchDaemon (prompting for admin once) and waits for it.

func IsRunning

func IsRunning(client *http.Client) bool

IsRunning reports whether the daemon answers on the socket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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