Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

Guardian failure gives exit 0 on jvm termination

$
0
0

I have akka.coordinated-shutdown.exit-code = 1.

If I execute ActorSystem(Behaviors.empty, "sys").terminate() it will exit with code 1.

  ActorSystem[Nothing](Behaviors.setup[Nothing](_ => {
    throw new Exception("Aaaaa!")
    Behaviors.empty
  }), "sys")

Returns 0 (after logging " guardian failed, shutting down system")

How should I make exceptional failures return non-zero exit codes?

Ubuntu / Akka 2.6.16

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles