pidfile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorPidForking    = errors.New("pid file is forking")
	ErrorPidNotForking = errors.New("pid file not forking")
)

Functions

func Exist

func Exist() bool

func ProcessExists

func ProcessExists(pid int) bool

Types

type PidFile

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

func New

func New() (*PidFile, error)

func (*PidFile) Remove

func (p *PidFile) Remove() error

func (*PidFile) TryFork

func (p *PidFile) TryFork() error

func (*PidFile) UnFork

func (p *PidFile) UnFork() error

Jump to

Keyboard shortcuts

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