func checkRuntimeProcessExit(msg *tcpmsg.Message) bool {
var err error
reqBody, err = getRequestBody(msg)
if err != nil {
return false
}
arg := fmt.Sprintf("%s%s", "ps aux | grep -v grep | grep ", reqBody.Version)
cmd := exec.Command("bash", "-c", arg)
if err := cmd.Start(); err != nil {
return false
}
if err := cmd.Wait(); err != nil {
if cmd.ProcessState.Exited() {
return true
}
return false
}
return false
}