Hi Chan,
You can use the admin service "ServerAdmin"[1] to graceful shutdown the
carbon server.

[1]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.server.admin/4.2.0/

Thanks,
Nuwanw


On Mon, Feb 3, 2014 at 4:32 PM, Chan <[email protected]> wrote:

> Hi all,
> What is the proper method to programmatically stop the carbon server?
> System.exit(0) does the trick but doesn't shutdown gracefully. I looked up
> on a service wrapper[1] that supports this features. I want to trigger a
> graceful shutdown as you do with Ctrl+C.
>
> Cheers~
>
> [1] - http://wrapper.tanukisoftware.com/doc/english/qna-shutdown.html
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email       [email protected] <[email protected]>*
> *  ~Mobile     +94712112165 <%2B94712112165>*
>
> *  ~Website   dulithawijewantha.com <http://dulithawijewantha.com/>*
>
> *  ~Blog         blog.dulithawijewantha.com
> <http://dulichan.github.io/chan/>*
> *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to