Hi all,
So everything tomcat is in the /opt/tomcat/ installation, owned by the tomcat group
I also provisioned a mapstore config folder at /opt/mapstore-conf for the external overwrites.
I
have tried looking at the documentation, and I see that I have to
specify to Tomcat the -Ddatadir.location JVM system property, as per the
instructions here:
I tried adding to my
/etc/systemd/system/tomcat.service service definition file the following:
Environment='JAVA_OPTS=-Ddatadir.location=/opt/mapstore-conf/'
Is this the correct way of adding the JVM system property?
If
it is, however any changes I try to make in the localConfig.json in the
external file fails to register with the Mapstore Application. Is
I see that the java process is initializing with the above parameter, :
$ ps -eaf|grep -i java
tomcat 10237 1 5 19:07 ? 00:00:34 /usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Ddatadir.location=/opt/mapstore-conf/ -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
-Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms1024M
-Xmx2048M -server -XX:+UseParallelGC -Dignore.endorsed.dirs= -classpath
/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
-Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start
sorin 10723 2602 0 19:17 pts/0 00:00:00 grep --color=auto -i java
Am I in the right direction with my configurations? Anyone?