unix

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	ID        string
	GUID      string
	Name      string
	Command   string
	Args      []string
	AutoStart bool
}

Daemon has a parameters for unix-daemon.

func NewDaemon

func NewDaemon(id string) *Daemon

NewDaemon creates a default deamon configuration.

func (*Daemon) Install

func (d *Daemon) Install() error

Install installs the daemon.

func (*Daemon) IsStopped

func (d *Daemon) IsStopped() bool

IsStopped returns the daemon stopped status.

func (*Daemon) Remove

func (d *Daemon) Remove() error

Remove removes the daemon.

func (*Daemon) Start

func (d *Daemon) Start() error

Start starts the daemon.

func (*Daemon) Stop

func (d *Daemon) Stop() error

Stop stops the daemon.

Jump to

Keyboard shortcuts

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