Offical method for shutting down cleanly an Akka Microkernal instance

231 views
Skip to first unread message

foolshat

unread,
Feb 9, 2011, 5:12:02 PM2/9/11
to Akka User List
Q: Given a running instance of Akka microkernal, how do you shut it
down gracefully from the command line/terminal ?

The advice below [1] makes sense, "to let it crash", this would be a
ctrl-c in a windows console, which in fact do all the time in
development. But, it kind of feels "wrong" to do that for a production
environment!

It "feels" more "correct" to offer some kind of "-stop" option via a
command line tool. Can the Akka developers confirm that a "kill -9"
or windows "End process" is safe ? Or perhaps you should provide a
tool to shutdown, which under the covers might just kill the process,
but leaving everyone oblivious to the reality.

[1]
http://groups.google.com/group/akka-user/browse_thread/thread/b2434f5e190ef6f7/c55c6b3615526e42?lnk=gst&q=shutting+down+microkernal#c55c6b3615526e42

Garrick Evans

unread,
Feb 9, 2011, 5:24:53 PM2/9/11
to akka...@googlegroups.com
This page in the wiki shows a few scripts that you could use (on osx or linux) to start/stop as service but you're essentially doing the same thing... Jetty catches the signal and will shutdown gracefully.  

foolshat

unread,
Feb 9, 2011, 5:42:41 PM2/9/11
to Akka User List
Thanks Garrick for the quick reply.

>Jetty catches the signal and will shutdown gracefully.  
Is this the case with Windows ? On ctrl-c I get

Terminate batch job (Y/N)? y
No further output. Checking in the akka.log file, I just see the last
entry I saw in the console prior to ctl-c.
I kind of expected "akka microkernel shutting down" or something.

On Feb 9, 10:24 pm, Garrick Evans <buk...@gmail.com> wrote:
> This page <http://doc.akka.io/building-akka> in the wiki shows a few scripts

Garrick Evans

unread,
Feb 9, 2011, 5:44:59 PM2/9/11
to akka...@googlegroups.com
I can honestly admit to never having run akka on windows but what do you see if you launch the jar yourself from the shell and then ctrl-c it? same thing?

Jonas Bonér

unread,
Feb 10, 2011, 2:15:16 AM2/10/11
to akka...@googlegroups.com
Akka is crash-only software. http://en.wikipedia.org/wiki/Crash-only_software
Just 'kill -9' it. 


--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.




--
Jonas Bonér

Specialist at Large
work: http://scalablesolutions.se
code: http://akka.io
blog: http://jonasboner.com
twtr: @jboner



Reply all
Reply to author
Forward
0 new messages