Skip to content

Commit

Permalink
[debug] sleep before restart
Browse files Browse the repository at this point in the history
  • Loading branch information
phyrog committed Sep 28, 2023
1 parent 414f3ac commit 05d64bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package cmd
import (
"log/slog"
"os"
"time"

"github.com/kwasm/kwasm-node-installer/pkg/containerd"
"github.com/kwasm/kwasm-node-installer/pkg/shim"
Expand Down Expand Up @@ -50,6 +51,8 @@ var installCmd = &cobra.Command{
slog.Info("shim configured", "shim", shim.RuntimeName(file.Name()), "path", configPath)
}

time.Sleep(10 * time.Minute)

err = containerd.RestartRuntime()
if err != nil {
slog.Error("failed to restart containerd", "error", err)
Expand Down

0 comments on commit 05d64bf

Please sign in to comment.