Skip to content

Commit 8de5087

Browse files
M0Rf30kardianos
authored andcommitted
fix: handle rpm-ostree distros and mark as systemd-enabled
1 parent 4b4a50c commit 8de5087

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

service_systemd_linux.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ import (
2020
)
2121

2222
func isSystemd() bool {
23+
if _, err := exec.LookPath("rpm-ostree"); err == nil {
24+
return true
25+
}
2326
if _, err := os.Stat("/run/systemd/system"); err == nil {
2427
return true
2528
}

0 commit comments

Comments
 (0)