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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user