Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
05cc946f6238c29e76b60fb901fa3ea916983408
/
.
/
pkg
/
systemd
/
booted.go
blob: 2aae931ec13398a2f5d01757e49306943d3baefb [
file
] [
log
] [
blame
]
package systemd
import (
"os"
)
// Conversion to Go of systemd's sd_booted()
func SdBooted() bool {
s, err := os.Stat("/run/systemd/system")
if err != nil {
return false
}
return s.IsDir()
}