daemon

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listeners

func Listeners(name string) ([]net.Listener, error)

Types

type DaemonSpec

type DaemonSpec struct {
	Label                string
	EnvironmentVariables map[string]string
	Program              string
	ProgramArguments     []string
	SessionType          string
	RunAtLoad            bool
	Sockets              map[string]string
	StdoutPath           string
	StderrPath           string
	LogPath              string
	Options              map[string]interface{}
}

type Launchd

type Launchd struct {
	PListDir string
}

func New

func New(plistDir string) *Launchd

func (*Launchd) AddDaemon

func (l *Launchd) AddDaemon(spec DaemonSpec) error

func (*Launchd) IsRunning

func (l *Launchd) IsRunning(label string) (bool, error)

func (*Launchd) RemoveDaemon

func (l *Launchd) RemoveDaemon(label string) error

func (*Launchd) Start

func (l *Launchd) Start(label string) error

func (*Launchd) Stop

func (l *Launchd) Stop(label string) error

Jump to

Keyboard shortcuts

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