Hello,
On 9/16/25 2:29 PM, A Name wrote:
We've been running tomcat9 on linux (and 8 and 7 etc.) for years. I stood
up a new server for tomcat 10 and pulled 10.1.44.
I built the tomcat.service in /etc/systemd/system
[Unit]Description=Tomcat - instance %iAfter=syslog.target network.target
[Service]Type=forking
User=tomcatGroup=tomcat
WorkingDirectory=/var/tomcat/%i
Environment="JAVA_HOME=/usr/lib/jvm/jre/"Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom"
Environment="CATALINA_PID=/usr/share/tomcat/temp/tomcat.pid"Environment="CATALINA_BASE=/usr/share/tomcat"Environment="CATALINA_HOME=/usr/share/tomcat"Environment="CATALINA_OPTS=-Xms512M
-Xmx1024M -server -XX:+UseParallelGC"
ExecStart=/usr/share/tomcat/bin/startup.shExecStop=/usr/share/tomcat/bin/shutdown.sh
#RestartSec=10#Restart=always
[Install]WantedBy=multi-user.target
When I start up, I see VersionLoggerListener.log CATALINA_BASE:
/usr/share/tomcat-10.1.44
But that's not what is set in the environment variable in the tomcat.service.
It looks like maybe your service file was copy/pasted with some
mangling. Can you try again? What I see is a bunch of Environment= lines
smashed together. Are they showing that way in your actual file?
There's no setenv.sh
I've searched everything in bin and in conf - nothing sets the
tomcat-10.1.44 value.
What stupid thing am I missing?
Is /usr/share/tomcat a symlink?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]