Help us shape the future of Go! Take the 2026 Go Developer Survey

maclaunchd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package maclaunchd provides a launchd service adapter for macOS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MacLaunchdService

type MacLaunchdService struct {
	// contains filtered or unexported fields
}

MacLaunchdService implements ports.LaunchdService for macOS.

func New

func New() *MacLaunchdService

New creates a new MacLaunchdService adapter.

func (*MacLaunchdService) Install

func (s *MacLaunchdService) Install(execPath, configPath string, hour, minute int) error

Install creates the plist file and loads the service.

func (*MacLaunchdService) IsInstalled

func (s *MacLaunchdService) IsInstalled() bool

IsInstalled checks if the service is currently installed.

func (*MacLaunchdService) LogPath

func (s *MacLaunchdService) LogPath() string

LogPath returns the path where logs should be written.

func (*MacLaunchdService) PlistPath

func (s *MacLaunchdService) PlistPath() string

PlistPath returns the path where the plist file should be stored.

func (*MacLaunchdService) Status

func (s *MacLaunchdService) Status() string

Status returns the current status of the service. Returns "running", "loaded", "not loaded", or error message.

func (*MacLaunchdService) Uninstall

func (s *MacLaunchdService) Uninstall() error

Uninstall unloads the service and removes the plist file.

Jump to

Keyboard shortcuts

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