upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / tomcat9 / trunk / tomcat9.service
blobb6e42d97c4f788f4a235bb87830134a1394f5138
1 [Unit]
2 Description=Tomcat 9 servlet container
3 After=network.target
5 [Service]
6 Type=forking
7 PIDFile=/var/run/tomcat9.pid
8 Environment=CATALINA_PID=/var/run/tomcat9.pid
9 Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/default-runtime
10 Environment=CATALINA_HOME=/usr/share/tomcat9
11 Environment=CATALINA_BASE=/usr/share/tomcat9
12 Environment=CATALINA_OPTS=
13 Environment=ERRFILE=SYSLOG
14 Environment=OUTFILE=SYSLOG
16 ExecStart=/usr/bin/jsvc \
17             -Dcatalina.home=${CATALINA_HOME} \
18             -Dcatalina.base=${CATALINA_BASE} \
19             -Djava.io.tmpdir=/var/tmp/tomcat9/temp \
20             -cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \
21             -user tomcat9 \
22             -java-home ${TOMCAT_JAVA_HOME} \
23             -pidfile /var/run/tomcat9.pid \
24             -errfile ${ERRFILE} \
25             -outfile ${OUTFILE} \
26             $CATALINA_OPTS \
27             org.apache.catalina.startup.Bootstrap
29 ExecStop=/usr/bin/jsvc \
30             -pidfile /var/run/tomcat9.pid \
31             -stop \
32             org.apache.catalina.startup.Bootstrap
34 [Install]
35 WantedBy=multi-user.target