demon

package
v0.0.0-...-16ac56d Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDemonExecutable

func IsDemonExecutable() bool

func IsRunning

func IsRunning() bool

func PIDFile

func PIDFile() (string, error)

func ReadPID

func ReadPID() (int, error)

func RemovePIDFile

func RemovePIDFile() error

func WritePIDFile

func WritePIDFile(pid int) error

Types

type Demon

type Demon struct {
	Log *logger.Logger

	Pid int
	// contains filtered or unexported fields
}

func New

func New() (*Demon, error)

func (Demon) Run

func (d Demon) Run(callback func()) error

func (Demon) Stop

func (d Demon) Stop() error

Jump to

Keyboard shortcuts

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