summaryrefslogtreecommitdiff
path: root/sd_daemon/booted.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-27 21:59:17 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-27 21:59:17 -0700
commit963644c19058829f74bd7d19a484c0786d6777cd (patch)
treec827fc6b5245aec2fc78aaf29eb0552f1e8bce41 /sd_daemon/booted.go
parent13cdadaf934e6079f7a835cd680cf0ffe89d6ca6 (diff)
Documentation improvements.
Also, I renamed a couple of the sd_id128 functions for better clarity. But since I haven't pushed since originally implementing them, I'm not labeling it as a breaking change.
Diffstat (limited to 'sd_daemon/booted.go')
-rw-r--r--sd_daemon/booted.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd_daemon/booted.go b/sd_daemon/booted.go
index b833b45..18fd4fb 100644
--- a/sd_daemon/booted.go
+++ b/sd_daemon/booted.go
@@ -23,6 +23,10 @@ import "os"
// Please do not use this function. All of the other functionality in
// this package uses interfaces that are not systemd-specific.
func SdBooted() bool {
+ // BUG(lukeshu): SdBooted is systemd-specific, and isn't of
+ // particular value to daemons. It doesn't really belong in a
+ // library of generic daemon utilities. But, we defer to its
+ // inclusion in the C-language libsystemd.
fi, err := os.Lstat("/run/systemd/system")
return err != nil && fi.IsDir()
}