sdnotify

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2018 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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