This file is indexed.

/etc/cron.daily/tomcat8 is in tomcat8 8.0.14-1+deb8u11.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

NAME=tomcat8
DEFAULT=/etc/default/$NAME
LOGEXT=log

# The following variables can be overwritten in $DEFAULT

# Default for number of days to keep old log files in /var/log/tomcatN/
LOGFILE_DAYS=14
# Whether to compress logfiles older than today's
LOGFILE_COMPRESS=1

# End of variables that can be overwritten in $DEFAULT

# overwrite settings from default file
if [ -f "$DEFAULT" ]; then
	. "$DEFAULT"
fi

if [ -d /var/log/$NAME ]; then
	if [ $LOGFILE_COMPRESS = 1 ]; then
		find /var/log/$NAME/ -name \*.$LOGEXT -daystart -mtime +0 -print0 \
			| xargs --no-run-if-empty -0 gzip -9
		LOGEXT=log.gz
	fi

	find /var/log/$NAME/ -name \*.$LOGEXT -mtime +$LOGFILE_DAYS -print0 \
		| xargs --no-run-if-empty -0 rm --
fi