My understanding is that even if you Ctrl-C, Akka can have some processes and actors still running. How can I, using the command line only, shutdown all remaining Akka processes and actors? I'd like to do this at the shell, not by writing Scala code.
1
votes
2 Answers
2
votes
If you SIGINT
(ctrl + c) a process, you'll kill the JVM. If you kill the JVM, you've killed Akka – it doesn't spawn any processes outside of the VM. If you want to programmatically you should call shutdown
and awaitTermination
on your ActorSystem
. Here's more docs about ActorSystem