pRuntime

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProIsRun

func CheckProIsRun() bool

func DaemonInit

func DaemonInit()

func FileExists

func FileExists(path string) bool

func GetRunningPid

func GetRunningPid() int

func HandleEndSignal

func HandleEndSignal(fn func())

func HandleReloadSignal

func HandleReloadSignal(fn func())

func Reload

func Reload() error

func SetPidFile

func SetPidFile(pFile string)

func Stop

func Stop() error

Types

type Proc

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

func NewProc

func NewProc() (*Proc, error)

func (*Proc) Kill

func (p *Proc) Kill() error

func (*Proc) Pid

func (p *Proc) Pid() int

func (*Proc) Wait

func (p *Proc) Wait() error

Jump to

Keyboard shortcuts

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