oscompat

package
v0.0.0-...-f7d5a2b Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPidFile

func DefaultPidFile() string

func SignalHandler

func SignalHandler(signalChannel chan os.Signal, d inexpugnable.Daemon, mainlog log.Logger, readConfig func() (*inexpugnable.AppConfig, error))

SignalHandler captures and manages SIGHUP and friends. It expects signalChannel to be a buffered channel. For example:

signalChannel := make(chan os.Signal, 1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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