Documentation ¶
Overview ¶
Package systemd provides the common systemd helper functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
CheckVersion returns the systemd version by running `systemd --version`.
func GetUptime ¶
GetUptime returns the uptime duration of the systemd service. ref. https://github.com/kubernetes/node-problem-detector/blob/c4e5400ed6d7ca30d3a803248ae5b55c53557e59/pkg/healthchecker/health_checker_linux.go
func SystemctlExists ¶
func SystemctlExists() bool
func SystemdExists ¶
func SystemdExists() bool
Types ¶
type DbusConn ¶
type DbusConn struct {
// contains filtered or unexported fields
}
func NewDbusConn ¶
Caller should explicitly close the connection by calling Close() on returned connection object
Click to show internal directories.
Click to hide internal directories.