daemon

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 0 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
	Program          string
	ProgramArguments []string
	SessionType      string
	RunAtLoad        bool
	Sockets          map[string]string
	StdoutPath       string
	StderrPath       string
}

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