Skip to content

Commit

Permalink
fix healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Marchenko committed Apr 8, 2022
1 parent 444e8aa commit 92fdbc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func notifyExternalProcessesStarted(){

func isProcessStoppedByWrapper() bool {
_, err := os.Stat(stoppedFile)
return errors.Is(err, os.ErrNotExist)
return !errors.Is(err, os.ErrNotExist)
}

func stopProcess(){
Expand All @@ -118,6 +118,7 @@ func resumeProcess(){
paused = false
running = true
sendSig(syscall.SIGCONT)
notifyExternalProcessesStarted()
}

func termProcess(){
Expand Down Expand Up @@ -202,3 +203,4 @@ func readStdoutStderr(stdout io.ReadCloser, stderr io.ReadCloser) []controller.F
return filesLinebuf(linebuf)
}
}

0 comments on commit 92fdbc9

Please sign in to comment.