package
0.1.2
Repository: https://github.com/timfallmk/go-daemon.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

func LockPidFile trys create and lock pid-file.
func Reborn daemonize process.
func RedirectStream redirects file s to file target.
func ServeSignals calls handlers for system signals.
func SetHandler sets handler for the given signals.
func WasReborn, return true if the process has environment variable _GO_DAEMON=1 (child process).

# Variables

ErrStop should be returned signal handler function for termination of handling signals.
ErrWoldBlock indicates on locking pid-file by another process.

# Structs

PidFile contains information of pid-file.

# Type aliases

SignalHandlerFunc is the interface for signal handler functions.