procutil

package
v0.0.0-...-fb1bee7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePidFile

func CreatePidFile() (func() error, error)

func FindProcessWithPid

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

func FindProcessWithPidFile

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

func RunAppInBackground

func RunAppInBackground(args []string) error

func StopDaemon

func StopDaemon() 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