You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2009/11/27 13:33:01 UTC

RunMode service usage (was: Loading configuration files)

Hi Chris,

On Fri, Nov 27, 2009 at 12:09 PM,  <CP...@t-systems.com> wrote:
> ...Can I ask how you might set the "runmode" of a server.  The Sling 5
> instance I have doesn't seem to have the org.apache.sling.runmode
> bundle.  The CQ5 instance I have does, but I have looked for an OSGi
> configuration page for that bundle but can't find one.  I do see the
> RunMode page in the felix console with the mode set to "author"....

I have just added a short documentation on this, should appear in a
few hours under http://sling.apache.org/site/bundles.html

For now, here's the relevant part:

Installation

The run mode service is not present in the default Sling launchpad
builds, to activate it install and start the org.apache.sling.runmode
bundle.

Configuration

Run modes can only be configured using a system property, or via the
sling.properties file.

Using -Dsling.run.modes=foo,bar on the JVM command-line, for example,
activates the foo and bar run modes. This command-line parameter takes
precedence over a similar definition (sling.run.modes=dev,staging)
that might be present in the sling.properties file found in the Sling
home directory.

Hope this helps,
-Bertrand