aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/util/std.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/util/std.go')
-rw-r--r--internal/util/std.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/util/std.go b/internal/util/std.go
deleted file mode 100644
index b237ad73..00000000
--- a/internal/util/std.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package util
-
-import (
- "errors"
- "io/fs"
- "os"
-)
-
-const (
- systemdCheckPath = "/run/systemd/system"
-)
-
-// SdBooted implements https://www.freedesktop.org/software/systemd/man/sd_booted.html
-func SdBooted() (bool, error) {
- _, err := os.Stat(systemdCheckPath)
- if err != nil {
- if errors.Is(err, fs.ErrNotExist) {
- err = nil
- }
- return false, err
- }
-
- return true, nil
-}