Documentation ¶
Overview ¶
Package util contains utility functions related to systemd that applications can use to check things like whether systemd is running.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRunningSystemd ¶
func IsRunningSystemd() bool
IsRunningSystemd checks whether the host was booted with systemd as its init system. This functions similar to systemd's `sd_booted(3)`: internally, it checks whether /run/systemd/system/ exists and is a directory. http://www.freedesktop.org/software/systemd/man/sd_booted.html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.