Help us shape the future of Go! Take the 2026 Go Developer Survey

systemd

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ready     = "READY=1"
	Reloading = "RELOADING=1"
	Stopping  = "STOPPING=1"
)

Variables

View Source
var NotifyNoSocket = errors.New("No socket")

Functions

This section is empty.

Types

type Notifier

type Notifier struct{}

Notifier provides a method to send a message to systemd.

func (*Notifier) Notify

func (n *Notifier) Notify(state string) error

Notify sends a message to the init daemon. It is common to ignore the error.

Jump to

Keyboard shortcuts

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