From e68bfa795a62c087cc793583291edc138583b7a2 Mon Sep 17 00:00:00 2001 From: Alex Paguis Date: Mon, 24 Feb 2025 21:17:16 -0500 Subject: [PATCH] add a small delay service start self check --- cmd/cli/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/cli/commands.go b/cmd/cli/commands.go index 31be3bf..68751ce 100644 --- a/cmd/cli/commands.go +++ b/cmd/cli/commands.go @@ -462,6 +462,9 @@ NOTE: running "ctrld start" without any arguments will start already installed c return } + // add a small delay to ensure the service is started and did not crash + time.Sleep(1 * time.Second) + ok, status, err := selfCheckStatus(ctx, s, sockDir) switch { case ok && status == service.StatusRunning: