sdnotify

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 7 Imported by: 139

Documentation

Overview

Package sdnotify implements both sides of the systemd readiness protocol. Servers can use sdnotify.Ready() to signal that they are ready to receive traffic, and process managers can use sdnotify.Exec() to run processes that implement this protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(cmd *exec.Cmd) error

Exec the given command in the background using the systemd notification protocol. This function returns once the command has either exited or signaled that it is ready. If the command exits with a non-zero status before signaling readiness, returns an exec.ExitError.

func Ready

func Ready() error

Ready sends a readiness signal using the systemd notification protocol. It should be called (once) by a server after it has completed its initialization (including but not necessarily limited to binding ports) and is ready to receive traffic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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