Changing location for standalone.xml.tmp

jbosswildfly8

We use wildfly 10.x as an application server. Our setup is much restrictive. So the AS user is not allowed to write to jboss.server.base.dir/configuration/ but at startup it wants to write the standalone.xml.tmp file to that location.
Is there a way to change the location for that file to jboss.server.tmp.dir?

I added also wildfly8 as a tag because it may be also a interesting thing for that version.

Best Answer

If you don't want to change the standalone.xml during runtime then you can call:

standalone.bat --read-only-server-config=standalone.xml

That won't touch any file in your configuration folder. Even the logging.properties is not touched, if the content is already matching the standalone.xml.