Am 20.05.2012 17:37, schrieb Smagin Vladimir:
> Hi all. I found that my fedora 16 doesnt clean /tmp at shutdown like any 
> other linux distributions. How I can fix this issue? Using tmpfs is a wrong 
> way.

Fedora handles this with "tmpwatch" and a too large default
you can create your own file with oerrides

no reason to remove ALL from /tmp while shutdown
why do you bother about?

[root@srv-rhsoft:~]$ cat /etc/cron.daily/tmpwatch-rh
#! /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_*' 2d /tmp
/usr/sbin/tmpwatch "$flags" 2d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
 if [ -d "$d" ]; then
  /usr/sbin/tmpwatch "$flags" -f 2d "$d"
 fi
done

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to