sdnotify

package
v0.38.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadyEnabled     = "READY=1"
	StoppingEnabled  = "STOPPING=1"
	ReloadingEnabled = "RELOADING=1"
)

Variables

This section is empty.

Functions

func FlagAndStatus

func FlagAndStatus(status string) error

FlagAndStatus sends systemd a combination of a well-known status and STATUS=%s{status}, separated by newline.

func InitSocket

func InitSocket() error

Initializes socket with provided name of environment variable.

func Send

func Send(state string) error

Send state through the notify socket if any. If the notify socket was not detected, it returns an error.

func Status

func Status(status string) error

Status sends systemd notify STATUS=%s{status}.

Types

This section is empty.

Jump to

Keyboard shortcuts

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