Have a look at Jakarta Commons-Daemon. I've never used it, but it promises to do precisely what you need. http://commons.apache.org/daemon/
Barend
On 10/9/08, Ahmed Al-Obaidy <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>
> 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").
>
>
>
>
