1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

cmd/incus-user: Update for internal/linux

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2023-09-29 16:14:44 -04:00
parent c70d37748e
commit edf560f75d

View File

@@ -12,7 +12,7 @@ import (
"github.com/spf13/cobra"
"github.com/lxc/incus/client"
"github.com/lxc/incus/incusd/util"
"github.com/lxc/incus/internal/linux"
)
var mu sync.RWMutex
@@ -62,7 +62,7 @@ func (c *cmdDaemon) Run(cmd *cobra.Command, args []string) error {
client.Disconnect()
// Setup the unix socket.
listeners := util.GetListeners(util.SystemdListenFDsStart)
listeners := linux.GetSystemdListeners(linux.SystemdListenFDsStart)
if len(listeners) > 1 {
return fmt.Errorf("More than one socket-activation FD received")
}