> On 2025 Sep 16, at 13:29, A Name <[email protected]> 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.


Pulled from where? The Tomcat website? Some repository? A USB stick? How was 
Tomcat installed after it was “pulled”?


> 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


Formatting of the above pretty broken. I suspect you lost some things 
(including newlines) doing the copy & paste.


> When I start up, I see VersionLoggerListener.log CATALINA_BASE:
> /usr/share/tomcat-10.1.44


Does that directory exist? Does /usr/share/tomcat exist?


> But that's not what is set in the environment variable in the tomcat.service.
> 
> There's no setenv.sh


When running as a service, setenv.sh isn’t used, so that’s ok.

  - Chuck


> I've searched everything in bin and in conf - nothing sets the
> tomcat-10.1.44 value.
> 
> What stupid thing am I missing?



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to