tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheltenham, Chris" <ccheltenham-...@philasd.org>
Subject RE: tomcat
Date Thu, 05 Apr 2018 16:49:42 GMT
Certainly,

I took this from digital oceans posted web page on how to.
I am not sure what the umask is doing there either but it doesn't keep 
tomcat from functioning.
I also tried to run this as a non-root user but I was overruled by 
management for the time being.


# Systemd unit file for tomcat
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target

[Service]
Type=forking

Environment=JAVA_HOME=/opt/java
Environment=CATALINA_PID=/opt/apache-tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/apache-tomcat
Environment=CATALINA_BASE=/opt/apache-tomcat
Environment=CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC -Djava.net.preferIPv4Stack=true
Environment=JAVA_OPTS=-Dlog4j.configurationFile=/etc/cas/log4j2.xml -Djava.awt.headless=true

 -Djava.security.egd=file:/dev/./urandom

ExecStart=/opt/apache-tomcat/bin/catalina.sh start
ExecStop=/opt/apache-tomcat/bin/catalina.sh stop

User=root
Group=root
UMask=0007
RestartSec=15
Restart=always

[Install]
WantedBy=multi-user.target

===========================

Thank You;

Chris Cheltenham
Technology Services
The School District of Philadelphia

Work # 215-400-5025
Cell # 215-301-6571


-----Original Message-----
From: Christopher Schultz <chris@christopherschultz.net>
Sent: Thursday, April 5, 2018 12:45 PM
To: users@tomcat.apache.org
Subject: Re: tomcat

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chris,

On 4/5/18 11:13 AM, Cheltenham, Chris wrote:
> Thanks for answering. It's not a big problem just a bit annoying.
>
> I created a system service. Maybe I did not format it correctly.
>
> What [I] generally do is stop tomcat #systemctl stop tomcat And then
> blow out the /opt/apache-tomcat/logs files.

That should be safe.

> Then restart it as #systemctl start tomcat.

So should that.

> Sometimes it starts but there are not files in /opt/apache-tomcat/logs
> As soon as I see that I stop it and start it again.
>
> I delete the logs so I have less minutia to parse through.

Maybe your system service is doing something unexpected. Could you post what 
you've got?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlrGUp8ACgkQHPApP6U8
pFhZ6A//Q4hYSS3+VKcLK0H3q7hOymf5mhE1+iSvhz7p22dCVy8VSMVtbroxTgtK
nvcfQ5ytcFgcleNmp2Oj7y96Ab5sxdh+MsA0JuC5Oq3sA1hoOSL/iR+CCZa4VOAZ
RF5EVJorXbPm+KunvqjkdFwIu/1M+k3a/jmJQgxqRGKrZ/5TfV+BHkbEUkdz06d8
OLkMSROd28hvbkwMozvLRwAK8JJRgfNWiK60PF7OXNW4uydxG5RXm0Sb5gpRXGxj
I9YRU9jStFpfnKSQtnR+UeMrzUdPTB9hodu4M945M5Prmtlo2E3V5okDu7f6bv+v
OS991/wxf9xqTitBn/DCCa4jrabKRaOlncDW8L2efmR2P1PnECb9TBmwE6dEFTRO
0HdnFswdgKTal9+re5dRQ0kapjuroN1WRztLlKUa1r4S0C9Tstb87+hvnnhrFhd3
1rE1zmAxZboHlFRhsZKQjlqdKefZReFUf4CXcH6/WKzimupZFBPfOQMdCRNeTkKX
IcPxzLPAWHKhf6TKJZoa/xEes1n734cBs4NCq/k5ftexoNxV6TqD+SgfCh8j1H9/
ZNprsKcNyG28tzIou3eo7D4V1/wLiFzixhgwarT3fo4Esw29KHbJQA8ts4O/qehv
xZBiMc8piQTY3IN4U3TAufP03nZqzKFuAtdRUqKQ58VvEv2bZYI=
=7K9X
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message