This unit is provided by:
Options
-
[Install]
-
WantedBy=multi-user.target
-
-
[Service]
-
AmbientCapabilities=CAP_NET_BIND_SERVICE
-
CacheDirectory=tomcat9
-
CacheDirectoryMode=750
-
Environment="CATALINA_HOME=/usr/share/tomcat9" "CATALINA_BASE=/var/lib/tomcat9" "CATALINA_TMPDIR=/tmp" "JAVA_OPTS=-Djava.awt.headless=true"
-
Environment=CATALINA_PID=/var/run/tomcat9.pid TOMCAT_JAVA_HOME=/usr/lib/jvm/default-runtime CATALINA_HOME=/usr/share/tomcat9 CATALINA_BASE=/usr/share/tomcat9 CATALINA_OPTS= ERRFILE=SYSLOG OUTFILE=SYSLOG
-
ExecStart=/bin/sh /usr/libexec/tomcat9/tomcat-start.sh
-
ExecStart=/usr/bin/jsvc -Dcatalina.home=${CATALINA_HOME} -Dcatalina.base=${CATALINA_BASE} -Djava.io.tmpdir=/var/tmp/tomcat9/temp -cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar -user tomcat9 -java-home ${TOMCAT_JAVA_HOME} -pidfile /var/run/tomcat9.pid -errfile ${ERRFILE} -outfile ${OUTFILE} $CATALINA_OPTS org.apache.catalina.startup.Bootstrap
-
ExecStartPre=+/usr/libexec/tomcat9/tomcat-update-policy.sh
-
ExecStop=/usr/bin/jsvc -pidfile /var/run/tomcat9.pid -stop org.apache.catalina.startup.Bootstrap
-
Group=tomcat
-
NoNewPrivileges
Introduced in systemd 239=yes -
PIDFile=/var/run/tomcat9.pid
-
PrivateTmp=yes
-
ProtectSystem
Introduced in systemd 214=strict -
ReadWritePaths=/etc/tomcat9/Catalina/ /var/lib/tomcat9/webapps/ /var/log/tomcat9/
-
Restart=on-abort
-
SuccessExitStatus=143
-
SyslogIdentifier=tomcat9
-
Type=forking
-
Type=simple
-
User=tomcat
-
-
[Unit]
-
After=network.target
-
Description=Apache Tomcat 9 Web Application Server
-
Description=Tomcat 9 servlet container
-
Documentation=https://tomcat.apache.org/tomcat-9.0-doc/index.html
-
RequiresMountsFor=/var/log/tomcat9 /var/lib/tomcat9
-
Additionnal notes
Nothing here.