# NOTE: LATER, we may need to stagger the start times for all the tmpwatch
# processes if the file activity is disruptive to the system.
#
#  min   hour   dom   mon   dow   command
#
# At 3:10AM every day.
# Clean out everything older than 14 days just in case we missed a directory.
   10     3      *     *     *    /usr/bin/nice -20 /usr/bin/find /usr/twc/domestic/data/volatile/ -type files -mtime +14 ! -path "*eventlogs*" -delete >/dev/null 2>&1
#
# At 10 minutes past every hour.
# Data for Radar/Satellite Composite expires after 5 hours
# so clean out files older than 6 hours.
   10     *      *     *     *    /usr/local/sbin/tmpwatch -d -m  6 /usr/twc/domestic/data/volatile/images/radarSatellite >/dev/null 2>&1
#
# At 10 minutes past every hour.
# Data for radar expires after 3 hours
# so clean out files older than 4 hours.
   10     *      *     *     *    /usr/local/sbin/tmpwatch -d -m  4 /usr/twc/domestic/data/volatile/images/radar >/dev/null 2>&1
#
# At 10 minutes past every hour.
# Data for Satellite expires after 10 hours
# so clean out files older than 11 hours.
   10     *      *     *     *    /usr/local/sbin/tmpwatch -d -m  11 /usr/twc/domestic/data/volatile/images/satellite >/dev/null 2>&1
#
#
# At 20 minutes past every hour.
# Xml data for Traffic is no longer needed after 24 hours
# so clean out files older than 24 hours.
   20     *      *     *     *    /usr/local/sbin/tmpwatch -d -m  24 /usr/twc/domestic/data/volatile/traffic >/dev/null 2>&1

#
## Every 15 minutes check for traffic maps older than 1 hour
   */15   *      *     *     *    /usr/local/sbin/tmpwatch -d -m  1 /usr/twc/domestic/data/volatile/images/traffic >/dev/null 2>&1
      
#
# Check once a day to see if we need to clean up
# any old adtag files (older than 4 weeks).
   *     1      *     *     *    /usr/local/sbin/tmpwatch -u  672 /twc/products/tag/tags >/dev/null 2>&1
#
# Check once a day for run logs older than 7 days.
   *      4      *     *     *    /usr/local/sbin/tmpwatch -d -m  168 /twc/data/volatile/eventlogs >/dev/null 2>&1
#
#
# Check once a day for test logs older than 7 days.
   *      4      *     *     *    /usr/local/sbin/tmpwatch -d -m  168 /twc/data/volatile/testlogs >/dev/null 2>&1
#
# Every 10 minutes check for files in tmp older than 1 hour
   */10     *      *     *     *    /usr/local/sbin/tmpwatch -d -m  1 /twc/data/volatile/tmp >/dev/null 2>&1
