launchd

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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