Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: catalina.out possibly still around

...

No Format
rm -f /var/log/tomcat9/*
systemctl restart tomcat9
ls -l /var/log/tomcat9/
multitail /var/log/tomcat9/* -l 'journalctl -u tomcat9.service -f'  # exit with 'q'
systemctl stop tomcat9

Since If you're certain there's no catalina.log file being generated anymore we you can also disable the default logrotate config snippet for it:

...

  1. Avoid the systemd-house-of-horror that's still all too common with Tomcat/Java packaging
  2. Avoid slow startup times due to use of a blocking /dev/random (cf. Myths about urandom also linked from the Shib wiki).
  3. Allow the IDP application to write logs and metadata to the filesystem as needed
  4. Avoid Try avoiding the creation of catalina.out (we already have its content in journald using this configuration)

...