sdnotify

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 7 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 ClearStatus added in v0.43.0

func ClearStatus() error

ClearStatus resets the current service status previously set by Status.

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