tmpwatch/tmpwatch.daily
Miloslav Trmac 2901d19370 - Update to tmpwatch-2.9.16.
- Exclude /tmp/hsperfdata_*. Resolves: #527425
- Preserve timestamps where possible.
2009-10-15 14:50:37 +00:00

12 lines
365 B
Bash

#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
-X '/tmp/hsperfdata_*' 10d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 30d "$d"
fi
done