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 ¶
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.
Click to show internal directories.
Click to hide internal directories.