Re: how to clean /tmp at shutdown?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Smagin Vladimir <21h@xxxxxxxxxxxx> writes:

> 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.

Just put this into /sbin/halt.local and make it mode 755.


[wolfgang@arbol sbin]$ cat /sbin/halt.local 
#!/bin/sh
###############################################################################
##									     ##
##	File:     halt.local						     ##
##	Author:   Wolfgang S. Rupprecht <wolfgang@xxxxxxxxx>		     ##
##	Created:  Thu Jun  7 23:47:14 PDT 2007				     ##
##	Contents: wsrcc site-specific halt stuff                             ##
##									     ##
##	Copyright (c) 2007 Wolfgang S. Rupprecht.			     ##
##	All rights reserved.						     ##
##									     ##
##	$Id$								     ##
###############################################################################
# wsrcc halt script

echo "WSRCC: Clearing /tmp and /var/tmp"

cd /
/bin/rm -rf /tmp/* /tmp/.??* /var/tmp/* /var/tmp/.??*
sync; sync; sync;

#
# end
#




-- 
g+:  https://plus.google.com/114566345864337108516/about
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux