You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by pi...@apache.org on 2013/05/22 10:02:10 UTC
svn commit: r1485109 -
/karaf/branches/karaf-2.x/manual/src/main/webapp/users-guide/start-stop.conf
Author: pieber
Date: Wed May 22 08:02:09 2013
New Revision: 1485109
URL: http://svn.apache.org/r1485109
Log:
[KARAF-1563] Add documentation for new restart
Modified:
karaf/branches/karaf-2.x/manual/src/main/webapp/users-guide/start-stop.conf
Modified: karaf/branches/karaf-2.x/manual/src/main/webapp/users-guide/start-stop.conf
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.x/manual/src/main/webapp/users-guide/start-stop.conf?rev=1485109&r1=1485108&r2=1485109&view=diff
==============================================================================
--- karaf/branches/karaf-2.x/manual/src/main/webapp/users-guide/start-stop.conf (original)
+++ karaf/branches/karaf-2.x/manual/src/main/webapp/users-guide/start-stop.conf Wed May 22 08:02:09 2013
@@ -64,6 +64,25 @@ For convenience, a parameter on the {{ka
bin/start clean
{code}
+In addition there might be situations where you need to restart the application from your application or dont have any
+access to the service starting and stopping karaf. In this case you can either put an empty clean_cache or clean_all file
+into the {{data}} folder. If you restart or start and stop Karaf then either the cache will be cleaned or the entire
+{{data}} folder will be deleted.
+
+h2. Restarting Karaf
+
+You can restart Karaf directly from the command line by using:
+{code}
+dev:restart
+{code}
+
+Be careful since this does not start a new JVM but simply restarts the OSGi framework. If you want to clean your {{cache}}
+or {{data}} directory during the reboot add the -c or -cc params to your build. Mor detailed information about the
+restart parameters could be retrieved from the command line by using
+{code}
+dev:restart --help
+{code}
+
h2. Stopping Karaf
For both Windows and Unix installations, you can perform a clean shutdown of Karaf by using the following command when inside a Karaf console: