Skip to content

Commit 05d64bf

Browse files
committed
[debug] sleep before restart
1 parent 414f3ac commit 05d64bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/install.go

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package cmd
1919
import (
2020
"log/slog"
2121
"os"
22+
"time"
2223

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

54+
time.Sleep(10 * time.Minute)
55+
5356
err = containerd.RestartRuntime()
5457
if err != nil {
5558
slog.Error("failed to restart containerd", "error", err)

0 commit comments

Comments
 (0)