mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
add a small delay service start self check
This commit is contained in:
committed by
Cuong Manh Le
parent
e60a92e93e
commit
e68bfa795a
@@ -462,6 +462,9 @@ NOTE: running "ctrld start" without any arguments will start already installed c
|
|||||||
return
|
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)
|
ok, status, err := selfCheckStatus(ctx, s, sockDir)
|
||||||
switch {
|
switch {
|
||||||
case ok && status == service.StatusRunning:
|
case ok && status == service.StatusRunning:
|
||||||
|
|||||||
Reference in New Issue
Block a user