Skip to content

Commit

Permalink
incus: fix slow shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
  • Loading branch information
abiosoft committed Jul 27, 2024
1 parent 2413bec commit 2f88cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion environment/container/incus/incus.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (c *incusRuntime) Stop(ctx context.Context) error {
a := c.Init(ctx)

a.Add(func() error {
return c.guest.RunQuiet("sudo", "service", "incus", "stop")
return c.guest.RunQuiet("sudo", "incus", "admin", "shutdown")
})

a.Add(c.unsetRemote)
Expand Down

0 comments on commit 2f88cec

Please # to comment.