Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PidFile = Directory() + "/daemon.pid"
PidFile is the file where the pid of the daemon is stored
View Source
var StatusFile = Directory() + "/daemon.status"
StatusFile is the file where the status of the daemon is stored
Functions ¶
func Directory ¶
func Directory() string
Directory is the path of the directory containing the daemon control files
func NewPipeline ¶
func NewPipeline() (*validation.Pipeline, error)
func Pid ¶
Pid returns the pid of the daemon. If the pid file cannot be read, it returns 0 with an *errors.CannotReadPidError. If the daemon is not running the returned pid is -1.
func ReloadDaemon ¶
func ReloadDaemon() error
ReloadDaemon sends a SIGHUP to the daemon to force it to reload its configuration. If an error occurs the error will be of type *errors.CannotReloadDaemonError.
Types ¶
Click to show internal directories.
Click to hide internal directories.