Skip to content

Commit

Permalink
Merge pull request #201 from adamcstephens/migrate/fix-systemd
Browse files Browse the repository at this point in the history
lxd-to-incus: query systemd instead of assuming service file path
  • Loading branch information
stgraber authored Oct 28, 2023
2 parents 0a5f3e4 + d7f7ae5 commit 1d7f274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/lxd-to-incus/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func (s *targetSystemd) Present() bool {
return false
}

if !util.PathExists("/lib/systemd/system/incus.service") {
_, err := subprocess.RunCommand("systemctl", "list-unit-files", "incus.service")
if err != nil {
return false
}

Expand Down

0 comments on commit 1d7f274

Please sign in to comment.