mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-20 11:21:49 +00:00
refactor: move systemd integration to operator host
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
Reference in New Issue
Block a user