(Fix): Exit code 0 when expected (healthcheck fix)
This commit is contained in:
@@ -85,8 +85,11 @@ func main() {
|
|||||||
case signal := <-signalsCh:
|
case signal := <-signalsCh:
|
||||||
logger.Warn("Caught OS signal %s, shutting down", signal)
|
logger.Warn("Caught OS signal %s, shutting down", signal)
|
||||||
case err := <-errorCh:
|
case err := <-errorCh:
|
||||||
logger.Error(err)
|
|
||||||
close(errorCh)
|
close(errorCh)
|
||||||
|
if err == nil { // expected exit such as healthcheck
|
||||||
|
nativeos.Exit(0)
|
||||||
|
}
|
||||||
|
logger.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cancel()
|
cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user