sysdnotify

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BusError

func BusError(buserror string) error

BusError sends systemd notify BUSERROR=%s{buserror}

func ErrNo

func ErrNo(errno int) error

ErrNo sends systemd notify ERRNO=%d{errno}

func IsEnabled

func IsEnabled() bool

IsEnabled tells if systemd notify socket has been detected or not.

func MainPID

func MainPID(mainpid int) error

MainPID sends systemd notify MAINPID=%d{mainpid}

func Ready

func Ready() error

Ready sends systemd notify READY=1

func Reloading

func Reloading() error

Reloading sends systemd notify RELOADING=1

func Send

func Send(state string) error

Send state thru the notify socket if any. If the notify socket was not detected, it is a noop call. Use IsEnabled() to determine if the notify socket has been detected.

func Status

func Status(status string) error

Status sends systemd notify STATUS=%s{status}

func Stopping

func Stopping() error

Stopping sends systemd notify STOPPING=1

func WatchDog

func WatchDog() error

WatchDog sends systemd notify WATCHDOG=1

func WatchDogUSec

func WatchDogUSec(usec int64) error

WatchDogUSec sends systemd notify WATCHDOG_USEC=%d{µsec}

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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