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 (*Service) WritePlistToArray ¶
type ServiceKeyValue ¶
Click to show internal directories.
Click to hide internal directories.