feat: add start endpoint

This commit is contained in:
Saw-jan
2024-07-09 11:48:03 +05:45
parent 3306a1f277
commit 733f1852ea
3 changed files with 28 additions and 1 deletions
+7
View File
@@ -138,6 +138,13 @@ func Restart(envMap map[string]any) (bool, string) {
return WaitForConnection()
}
func IsOcisRunning() bool {
if cmd != nil {
return cmd.Process.Pid > 0
}
return false
}
func waitAllServices(startTime time.Time, timeout time.Duration) {
timeoutS := timeout * time.Second