Skip to content
Commits on Source (3)
tomcat9 (9.0.16-4) UNRELEASED; urgency=medium
tomcat9 (9.0.16-4) unstable; urgency=medium
* Team upload.
* debian/logging.properties: Add commented-out non-systemd configuration
......@@ -9,8 +9,12 @@ tomcat9 (9.0.16-4) UNRELEASED; urgency=medium
* debian/libexec/tomcat-locate-java.sh: Remove shebang and make
not executable as this is only ever sourced (makes no sense otherwise)
* Make the systemd startup script honour the (renamed) $SECURITY_MANAGER
* Remove -XX:+UseG1GC from standard JAVA_OPTS; the JRE chooses
a suitable GC automatically anyway (Closes: #925928)
* Correct the ownership and permissions on the log directory:
group adm and setgid (Closes: #925929)
-- Thorsten Glaser <tg@mirbsd.de> Mon, 01 Apr 2019 15:42:02 +0200
-- Thorsten Glaser <tg@mirbsd.de> Mon, 01 Apr 2019 17:16:06 +0200
tomcat9 (9.0.16-3) unstable; urgency=medium
......
......@@ -3,9 +3,10 @@
# OpenJDK and the Oracle JDK are tried.
#JAVA_HOME=/usr/lib/jvm/java-8-openjdk
# You may pass JVM startup parameters to Java here. If unset, the default
# options will be: -Djava.awt.headless=true -XX:+UseG1GC
JAVA_OPTS="-Djava.awt.headless=true -XX:+UseG1GC"
# You may pass JVM startup parameters to Java here. If you run Tomcat with
# Java 8 instead of 9 or newer, add "-XX:+UseG1GC" to select a suitable GC.
# If unset, the default options will be: -Djava.awt.headless=true
JAVA_OPTS="-Djava.awt.headless=true"
# To enable remote debugging uncomment the following line.
# You will then be able to use a Java debugger on port 8000.
......
......@@ -8,5 +8,5 @@ CATALINA_HOME=/usr/share/tomcat9
# Default Java options
if [ -z "$JAVA_OPTS" ]; then
JAVA_OPTS="-Djava.awt.headless=true -XX:+UseG1GC"
JAVA_OPTS="-Djava.awt.headless=true"
fi
......@@ -74,8 +74,10 @@ case "$1" in
chmod 775 /var/lib/tomcat9/webapps
# Grant read/write access to tomcat to the log and cache directories
chown -Rh $TOMCAT_USER:$TOMCAT_GROUP /var/log/tomcat9/ /var/cache/tomcat9/
chmod 750 /var/log/tomcat9/ /var/cache/tomcat9/
chown -Rh $TOMCAT_USER:adm /var/log/tomcat9/
chmod 2750 /var/log/tomcat9/
chown -Rh $TOMCAT_USER:$TOMCAT_GROUP /var/cache/tomcat9/
chmod 750 /var/cache/tomcat9/
;;
esac
......
......@@ -32,13 +32,13 @@ Group=tomcat
PrivateTmp=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
LogsDirectory=tomcat9
LogsDirectoryMode=750
CacheDirectory=tomcat9
CacheDirectoryMode=750
ProtectSystem=strict
ReadWritePaths=/etc/tomcat9/Catalina/
ReadWritePaths=/var/lib/tomcat9/webapps/
ReadWritePaths=/var/log/tomcat9/
RequiresMountsFor=/var/log/tomcat9 /var/lib/tomcat9
[Install]
WantedBy=multi-user.target
# type path mode uid gid age arg(symlink target)
d /var/log/tomcat9 2750 tomcat adm -