On 06/26/2015 04:58 PM, Django wrote: > Hello Martijn! > > Am 26.06.2015 um 16:54 schrieb Martijn Brinkers: > >> Can you show the contents of the file /etc/sysconfig/tomcat ? > > Here ist is: > > # Service-specific configuration file for tomcat. This will be sourced b > y > # the SysV init script after the global configuration file > # /etc/tomcat/tomcat.conf, thus allowing values to be overridden in > # a per-service manner. > # > # NEVER change the init script itself. To change values for all > services make > # your changes in /etc/tomcat/tomcat.conf > # > # To change values for a specific service make your edits here. > # To create a new service create a link from /etc/init.d/<your new > service> to > # /etc/init.d/tomcat (do not copy the init script) and make a copy of th > e > # /etc/sysconfig/tomcat file to /etc/sysconfig/<your new service> and > change > # the property values so the two services won't conflict. Register the n > ew > # service in the system as usual (see chkconfig and similars). > # > > # Where your java installation lives > #JAVA_HOME="/usr/lib/jvm/java" > > # Where your tomcat installation lives > #CATALINA_BASE="/usr/share/tomcat" > #CATALINA_HOME="/usr/share/tomcat" > #JASPER_HOME="/usr/share/tomcat" > #CATALINA_TMPDIR="/var/cache/tomcat/temp" > > # You can pass some parameters to java here if you wish to > #JAVA_OPTS="-Xminf0.1 -Xmaxf0.3" > > # Use JAVA_OPTS to set java.library.path for libtcnative.so > #JAVA_OPTS="-Djava.library.path=/usr/lib64" > > # What user should run tomcat > #TOMCAT_USER="tomcat" > > # You can change your tomcat locale here > #LANG="en_US" > > # Run tomcat under the Java Security Manager > #SECURITY_MANAGER="false" > > # Time to wait in seconds, before killing process > #SHUTDOWN_WAIT="30" > > # Whether to annoy the user with "attempting to shut down" messages or n > ot > #SHUTDOWN_VERBOSE="false" > > # Set the TOMCAT_PID location > #CATALINA_PID="/var/run/tomcat.pid" > > # Connector port is 8080 for this tomcat instance > #CONNECTOR_PORT="8080" > > # If you wish to further customize your tomcat environment, > # put your own definitions here > # (i.e. LD_LIBRARY_PATH for some jdbc drivers) > > JAVA_OPTS="$JAVA_OPTS -Ddjigzo-web.home=/usr/share/djigzo-web" > JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Xmx128M"
Something has changed with Tomcat 7 on CentOS 7. Somehow the sysconfig file for tomcat no longer understands $JAVA_OPTS. Probably the systconfig file is no longer included as a shell script (this used to work, not sure when this was changed). The solution is to set the JAVA_OPTS in one line: JAVA_OPTS="-Ddjigzo-web.home=/usr/share/djigzo-web -Djava.awt.headless=true -Xmx128M" After a restart the first time the GUI is activated, it takes some time to login. I think that the generation of some SSL DH keys takes some time after a restart. Kind regards, Martijn Brinkers -- CipherMail email encryption Open source email encryption gateway with support for S/MIME, OpenPGP and PDF messaging. https://www.ciphermail.com Twitter: http://twitter.com/CipherMail -- CipherMail email encryption Open source email encryption gateway with support for S/MIME, OpenPGP and PDF messaging. https://www.ciphermail.com Twitter: http://twitter.com/CipherMail _______________________________________________ Users mailing list [email protected] https://lists.djigzo.com/lists/listinfo/users
