Change runmode of existing AEM instance
My AEM instance which was running on 4502 port with this file name (cq-quickstart-author-p4502.jar). So, it had the "author" run mode which is expected. But, for testing, now I want to change the run mode to [publish, foo]. So, I am using the below command.
java -Xmx512m -jar cq-quickstart-p4502.jar -Dsling.run.modes=publish,foo
When I access http://localhost:4502/system/console/status-slingsettings, I am seeing run mode as [author, foo], but not [publish, foo]. Can anybody please let me know how to fix this?