procutil

package
v0.0.0-...-378a548 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePidFile

func CreatePidFile(path string, pid int) (func() error, error)

func FindProcessWithPid

func FindProcessWithPid(pid int) (*os.Process, error)

func LoadProcessWithPidFile

func LoadProcessWithPidFile(path string) (*os.Process, error)

func NotifyStopDaemon

func NotifyStopDaemon(buf []byte) error

func RunAppBackground

func RunAppBackground(name string, args []string) error

func StopProcessWithPidFile

func StopProcessWithPidFile(path string) error

func WaitForSigterm

func WaitForSigterm() os.Signal

Types

type BootInfo

type BootInfo struct {
	ChallengeKey []byte `json:"challenge_key"`
	ListenPort   int    `json:"listen_port"`
}

func (*BootInfo) Marshal

func (bi *BootInfo) Marshal() ([]byte, error)

func (*BootInfo) UnMarshal

func (bi *BootInfo) UnMarshal(buf []byte) error

Jump to

Keyboard shortcuts

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