If you take the approach of tomcat, it has a management socket open on some port. This socket is waiting for some external process to send it a "SHUTDOWN" command string.
This is configured by the <Server> element: <Server port="8005" shutdown="SHUTDOWN"> You could do the same. You can do exactly that using the telnet interface though as well from a shell script. - Ray On Wed, Jun 20, 2012 at 10:11 PM, Alex Wei <[email protected]> wrote: > ** > I start a osgi equinox with "-Declipse.ignoreApp=true > -Dosgi.noShutdown=true" and "-console" > I can exit or close it with "osgi > close" or "osgi >exit" command, > but I want to close it by shell or external command, how to do. > > > --------------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader > of this communication is > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > immediately notify the sender by return e-mail, and delete the original > message and all copies from > your system. Thank you. > > --------------------------------------------------------------------------------------------------- > > _______________________________________________ > equinox-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > -- *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile> <http://twitter.com/#!/rotty3000> | Senior Software Architect | *Liferay, Inc.* <http://www.liferay.com> <https://twitter.com/#!/liferay> --- 8-9 October 2012 |* Liferay **North America Symposium* | liferay.com/northamerica2012 <http://www.liferay.com/northamerica2012> 16-17 October 2012 |* Liferay **Europe Symposium* | liferay.com/europe2012<http://www.liferay.com/europe2012> 24-25 October 2012 |* Liferay **Spain Symposium* | liferay.com/spain2012<http://www.liferay.com/spain2012>
_______________________________________________ equinox-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/equinox-dev
