Hi,

On Tue, 2017-01-10 at 20:19 -0700, lancedolan wrote:
> I cannot change run mode using the process I have in the past, with
> Sling8.
> 
> The only thing that has worked for me was to crack open the
> org.apache.sling.launchpad-8-webapp.war file, crack open the oak jar
> file
> within it, edit sling_install.properties
> (sling.run.mode.install.options=oak|oak_mongo), and then zip it all
> back up
> again. This feels _wrong_ haha.
> 
> Things I tried, which failed:
> 
> -The Apache Sling Settings Service in OSGI console. It even says "The
> settings service manages some basic settings of Sling like run
> modes."
> However, there is no run mode config there.
> 
> -JVM arguments. I've tried -Dsling.run.mode.options=oak,oak_mongo and
> -Dsling.run.modes=oak,oak_mongo. No luck.
> 
> -Searched for other configurations in the configMgr console.
> 
> How do I just tell a Sling instance to stop running oak_tar and start
> running oak_mongo?

You can't as these modes are defined in the
sling.run.mode.install.options [1] and they can only be changed at
startup, see [2] .

So when starting up a Sling 8 instance only one of oak_tar or oak_mongo
can be defined and it can't be changed after startup.

Robert

[1]: http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.launch
pad-8/src/main/provisioning/boot.txt
[2]: https://sling.apache.org/documentation/bundles/sling-settings-org-
apache-sling-settings.html#defining-valid-run-modes

Reply via email to