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.
Click to show internal directories.
Click to hide internal directories.