package util

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/coreos/go-systemd/util"

Package util contains utility functions related to systemd that applications can use to check things like whether systemd is running.

Index

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

Source Files

util.go

Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
linux/amd64
Imports
1 packages
Last checked
57 seconds ago

Tools for package owners.