daemon

package
v0.0.0-...-2eef727 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill() error

Kill force-kills the daemon if it's running, otherwise does nothing.

func Start

func Start(cfg *config.Config) error

Start will fork a daemon process that loops until it receives sigint/sigterm/sigabrt. Start will fork and start the daemon process, which will start the caddy server and the mdns server (if needed) to proxy routes based on the current configuration. It also starts an RPC server that will handle requests to reload the server with a new configuration or stop the servers and exit the daemon.

func Status

func Status() (*os.Process, error)

Status will determine whether or not the daemon process is running. If it is, it returns the non-nil os.Process of that daemon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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