refactor: move systemd integration to operator host

This commit is contained in:
joshsiv-mulga
2026-09-29 09:58:53 +10:00
parent 25fa01a3d6
commit 681fccc616
8 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
"github.com/mulgadc/spinifex/spinifex/migrate"
"github.com/mulgadc/spinifex/spinifex/systemd"
"github.com/mulgadc/spinifex/spinifex/operator/host/systemd"
"github.com/spf13/cobra"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"github.com/mulgadc/spinifex/spinifex/migrate"
"github.com/mulgadc/spinifex/spinifex/systemd"
"github.com/mulgadc/spinifex/spinifex/operator/host/systemd"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strings"
"syscall"
"github.com/mulgadc/spinifex/spinifex/systemd"
"github.com/mulgadc/spinifex/spinifex/operator/host/systemd"
)
// deletedSuffix is what the kernel appends to /proc/<pid>/exe once the
@@ -26,7 +26,7 @@ func run() error {
if err != nil {
return err
}
unitsDir := filepath.Join(selfDir, "..", "..", "build", "systemd")
unitsDir := filepath.Join(selfDir, "..", "..", "..", "..", "build", "systemd")
ents, err := os.ReadDir(unitsDir)
if err != nil {