Cleaning /tmp

Reindl Harald h.reindl at thelounge.net
Sat Mar 3 18:56:09 UTC 2012



Am 03.03.2012 18:35, schrieb Frank Murphy:
> On 03/03/12 17:18, Reindl Harald wrote:
>> cat /etc/cron.daily/tmpwatch
>>
>> #! /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_*' 1d /tmp
>> /usr/sbin/tmpwatch "$flags" 1d /var/tmp
>> for d in/var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
>>      if [ -d "$d" ]; then
>>          /usr/sbin/tmpwatch "$flags" -f 1d "$d"
>>      fi
>> done
> 
> Will the next update of tmpwatch overwrite this.

maybe, do it in a /etc/cron.daily/tmpwatch-personalized

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120303/92e9a1c1/attachment.sig>


More information about the users mailing list