ASF Bugzilla – Attachment 35655 Details for
Bug 61971
documentation for using tomcat with systemd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
documentation for systemd
tomcat-systemd.patch (text/plain), 1.84 KB, created by
Alexander Kjäll
on 2018-01-06 17:22:36 UTC
(
hide
)
Description:
documentation for systemd
Filename:
MIME Type:
Creator:
Alexander Kjäll
Created:
2018-01-06 17:22:36 UTC
Size:
1.84 KB
patch
obsolete
>Index: bin/tomcat-example.service >=================================================================== >--- bin/tomcat-example.service (nonexistent) >+++ bin/tomcat-example.service (working copy) >@@ -0,0 +1,25 @@ >+[Unit] >+Description=Apache Tomcat Web Application Container >+After=syslog.target network.target >+ >+[Service] >+Type=forking >+ >+Environment=JAVA_HOME=/usr/lib/jvm/java-8-oracle/ >+Environment=CATALINA_PID=/opt/apache/apache-tomcat/temp/tomcat.pid >+Environment=CATALINA_HOME=/opt/apache/apache-tomcat >+Environment=CATALINA_BASE=/opt/apache/apache-tomcat >+Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC' >+Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom' >+ >+ExecStart=/opt/apache/apache-tomcat/bin/startup.sh >+ExecStop=/bin/kill -15 $MAINPID >+ >+User=tomcat >+Group=tomcat >+UMask=0007 >+RestartSec=10 >+Restart=always >+ >+[Install] >+WantedBy=multi-user.target >\ No newline at end of file >Index: webapps/docs/setup.xml >=================================================================== >--- webapps/docs/setup.xml (revision 1820411) >+++ webapps/docs/setup.xml (working copy) >@@ -109,6 +109,18 @@ > > </section> > >+ <section name="Unix daemon with systemd"> >+ >+ <p>On systems that use systemd to manage it's daemons you can use that to run tomcat. </p> >+ >+ <p>In the copy the file <code>bin/tomcat-example.service</code> to <code>/etc/systemd/system/tomcat.service</code> >+ and modify the paths in it to reflect your java and tomcat installation paths.</p> >+ >+ <p>Then do <code>systemctl daemon-reload</code> to load the config file and then you can start >+ tomcat with <code>systemctl start tomcat.service</code> and stop it with <code>systemctl stop tomcat.service</code></p> >+ >+ </section> >+ > <section name="Unix daemon"> > > <p>Tomcat can be run as a daemon using the jsvc tool from the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 61971
: 35655