launchd

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLabel = "io.github.avivsinai.amq-keepalive"

Variables

This section is empty.

Functions

func BuildPlist

func BuildPlist(opts Options) []byte

func DefaultLogPaths

func DefaultLogPaths(label string) (stdoutPath, stderrPath string, err error)

func DefaultPlistPath

func DefaultPlistPath(label string) (string, error)

func Install

func Install(ctx context.Context, opts Options) error

func ResolveExecutable

func ResolveExecutable(path string) (string, error)

func Uninstall

func Uninstall(ctx context.Context, label string, plistPath string, unload bool) error

Types

type Options

type Options struct {
	Label        string
	PlistPath    string
	BinaryPath   string
	RegistryPath string
	AMQPath      string
	Interval     time.Duration
	StdoutPath   string
	StderrPath   string
	Load         bool
}

func NormalizeOptions

func NormalizeOptions(opts Options) (Options, error)

Jump to

Keyboard shortcuts

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