Steve Langasek reminded me of the following:
Shouldn't tomcat be using something other than /var/lib for a temp directory? This is an FHS violation, and is inconsistent with things like backup policies that try to avoid temp files.
Rather than cleaning up a static directory at each restart, creating (safely) a /tmp/tomcat.XXXX and setting it as the jvm TMPDIR at each restart might be cleaner.
Steve Langasek reminded me of the following:
Shouldn't tomcat be using something other than /var/lib for a temp directory? This is an FHS violation, and is inconsistent with things like backup policies that try to avoid temp files.
Rather than cleaning up a static directory at each restart, creating (safely) a /tmp/tomcat.XXXX and setting it as the jvm TMPDIR at each restart might be cleaner.