Skip to content

Conversation

Arkatufus
Copy link
Contributor

Fixes #7517
Superseeds #7680

Changes

  • If "exit-clr" HOCON options is set and the CoordinatedShutdown stack was run, its reason will be propagated to the Environment.Exit() call.
  • Exit codes conforms to the Linux exit code convention

See: https://manpages.ubuntu.com/manpages/lunar/man3/sysexits.h.3head.html
See: https://manpages.ubuntu.com/manpages/noble/man3/EXIT_SUCCESS.3const.html

Possible Exit Codes

Exit code Description
0 ActorSystem shutdown cleanly due to .Terminate(), .Abort(), or normal cluster events
1 Unknown shutdown cause
3 [CLUSTER] ActorSystem terminated because it is downed
4 [CLUSTER] ActorSystem terminated because it failed to join the cluster

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) June 10, 2025 16:08
@Aaronontheweb Aaronontheweb disabled auto-merge June 10, 2025 17:42
@Aaronontheweb Aaronontheweb merged commit 8d70cce into akkadotnet:dev Jun 10, 2025
9 of 11 checks passed
@Arkatufus Arkatufus deleted the CoordinatedShutdown-propagate-exit-code branch June 20, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CoordinatedShutdown: return non-zero (error) exit code when ActorSystem is removed due to DOWNing
2 participants