sdnotify

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sdnotify implements sd_notify(3) protocol for notifying systemd about service state changes.

Index

Constants

View Source
const (
	// Ready tells systemd that the service is fully started and ready to
	// handle requests.
	Ready = "READY=1"
	// Reloading tells systemd that the service is reloading its configuration.
	// After completion the service should send [Ready] again.
	Reloading = "RELOADING=1"
	// Stopping tells systemd that the service is beginning its shutdown.
	Stopping = "STOPPING=1"
)

State messages for sd_notify.

Variables

This section is empty.

Functions

func Send

func Send(state string) error

Send sends a notification to systemd via the NOTIFY_SOCKET. If the NOTIFY_SOCKET environment variable is not set, Send is a no-op and returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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