systemd

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package systemd provides a Go implementation of the sd_notify protocol. It can be used to inform systemd of service start-up completion.

Index

Constants

View Source
const SdNotifyReady = "READY=1"

SdNotifyReady tells the service manager that service startup is finished, or the service finished loading its configuration. https://www.freedesktop.org/software/systemd/man/sd_notify.html#READY=1

Variables

This section is empty.

Functions

func HasNotifySocket

func HasNotifySocket() bool

HasNotifySocket checks if the process is supervised by Systemd and has the notify socket.

func SdNotify

func SdNotify(state string) error

SdNotify sends a message to systemd using the sd_notify protocol. See https://www.freedesktop.org/software/systemd/man/sd_notify.html.

Types

This section is empty.

Jump to

Keyboard shortcuts

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