launchd

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 8 Imported by: ? 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

Index

Constants

This section is empty.

Variables

View Source
var DaemonTemplate string
View Source
var Template string

Functions

func AutoStartedServiceName

func AutoStartedServiceName() string

AutoStartedServiceName returns the launchd service name if the instance is started by launchd.

func DaemonServiceNameFrom added in v2.2.0

func DaemonServiceNameFrom(instName string) string

DaemonServiceNameFrom returns the launchd daemon service name for the given instance name.

func EnableDisableService

func EnableDisableService(ctx context.Context, enable bool, instName string) error

EnableDisableService enables or disables the launchd service for the given instance name.

func GetDaemonPlistPath added in v2.2.0

func GetDaemonPlistPath(instName string) string

GetDaemonPlistPath returns the path to the system LaunchDaemon plist for the given instance.

func GetPlistPath

func GetPlistPath(instName string) string

GetPlistPath returns the path to the launchd plist file for the given instance name.

func RequestStart

func RequestStart(ctx context.Context, inst *limatype.Instance) error

func RequestStop

func RequestStop(ctx context.Context, inst *limatype.Instance) (bool, error)

func ServiceNameFrom

func ServiceNameFrom(instName string) string

ServiceNameFrom returns the launchd service name for the given instance name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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