daemon

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SubprocessTag = "sub"

SubprocessTag mark the current process is subprocess

Variables

This section is empty.

Functions

func Daemon

func Daemon(recordPid bool, daemonDelay time.Duration, monitorDelay time.Duration)

Daemon running as a daemon process, and create a subprocess for working

func KillPPid

func KillPPid()

KillPPid kill parent process

func Shutdown

func Shutdown() (err error)

Shutdown send a shutdown notify to the current daemon

Types

This section is empty.

Jump to

Keyboard shortcuts

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