You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Ahmed Al-Obaidy <ah...@yahoo.com> on 2008/10/11 16:40:29 UTC

Stopping MINA based server

I am sorry, I should post this in here instead of the dev mailing list

I am writing a mina based server. I am looking for a guide lines or
best practices of how to stop the server from the Linux service script
("/etc/init.d/myserver").

I mean: 
1) should I write the process id on a file, and kill that process in the stop script?
2) should I open a socket listener to receive stop commands? how to secure that?
3) should I use IPC ? or process signalling?
4) or there is something better? please suggest