launchd

package
v0.0.0-...-137c36e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceNotFoundError = errors.New("service not found")

Functions

This section is empty.

Types

type Service

type Service struct {
	Label                   string           `plist:"Label"`
	Disabled                bool             `plist:"Disabled"`
	UserName                bool             `plist:"UserName"`
	GroupName               bool             `plist:"GroupName"`
	Program                 string           `plist:"Program"`
	ProgramArguments        []string         `plist:"ProgramArguments"`
	EnableGlobbing          bool             `plist:"EnableGlobbing"`
	KeepAlive               bool             `plist:"KeepAlive"`
	RootDirectory           string           `plist:"RootDirectory"`
	WorkingDirectory        string           `plist:"WorkingDirectory"`
	EnvironmentVariables    ServiceKeyValue  `plist:"EnvironmentVariables"`
	Umask                   string           `plist:"Umask"`
	ExitTimeOut             int64            `plist:"ExitTimeOut"`
	StandardInPath          string           `plist:"StandardInPath"`
	StandardOutPath         string           `plist:"StandardOutPath"`
	StandardErrorPath       string           `plist:"StandardErrorPath"`
	SoftResourceLimits      map[string]int64 `plist:"SoftResourceLimits"`
	HardResourceLimits      map[string]int64 `plist:"HardResourceLimits"`
	Nice                    int64            `plist:"Nice"`
	ProcessType             string           `plist:"ProcessType"`
	AbandonProcessGroup     bool             `plist:"AbandonProcessGroup"`
	LowPriorityIO           bool             `plist:"LowPriorityIO"`
	LowPriorityBackgroundIO bool             `plist:"LowPriorityBackgroundIO"`
	LaunchOnlyOnce          bool             `plist:"LaunchOnlyOnce"`
}

Service see man launchd.plist

func FindService

func FindService(name string) (srvc *Service, err error)

func (*Service) Equal

func (s *Service) Equal(x *Service) bool

Equal compares two Service structs for equality

func (*Service) WritePlistToArray

func (s *Service) WritePlistToArray() (plistBytes []byte, err error)

type ServiceKeyValue

type ServiceKeyValue map[string]string

Jump to

Keyboard shortcuts

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