Re: Can't boot after an update

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

 



Sorry all, hit "send" too quick & forgot to change the subject line (again!) Mea maxima culpa. Dave





Date: Mon, 25 May 2009 00:39:34 -0700
From: "Wolfgang S. Rupprecht"
	<wolfgang.rupprecht+gnus200905@xxxxxxxxx>
Subject: Re: Can't boot after an update
To: fedora-list@xxxxxxxxxx
Message-ID: <87hbz9637t.fsf@xxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=us-ascii


DB <Freddog_de@xxxxxxxxxxx> writes:
I'm now trying to find a script that will clean /tmp automatically on
a regular basis. (I think part of the backlog is due to the switch
from Gnome to KDE)

I clean my /tmp on each orderly shutdown.  That way if the system
crashes, my /tmp is preserved but when I do a reboot, it gets cleaned.
Put this in /sbin/halt.local.

/sbin/halt.local:

#!/bin/sh
# wsrcc halt script

echo "WSRCC: Clearing /tmp"

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

#
# end
#

I used to use an age based clearing method, but that tended to remove
things I was still using if the system stayed up too long and it didn't
clear things quickly enough such as cases where something significant
changed and caused a name clash in /tmp.  (Try changing UID's around
sometime and forget about the files in /tmp.  Things won't be sane until
all those files get nuked.)

-wolfgang
Thanks Wolfgang, I'll give it a whirl!

Dave

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux