FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 05-21-2012, 12:03 PM
Bill Davidsen
 
Default how to clean /tmp at shutdown?

J.Witvliet@mindef.nl wrote:

-----Original Message-----
From: users-bounces@lists.fedoraproject.org [mailto:users-bounces@lists.fedoraproject.org] On Behalf Of Smagin Vladimir
Sent: Sunday, May 20, 2012 5:38 PM
To: users@lists.fedoraproject.org
Subject: how to clean /tmp at shutdown?

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

I like the way it was done in SunOS:
Just reformatting the partition at boottime, as deleting many files could take too long.

I'm not sure what "any other Linux distribution" does that by default,
Mindlessly nuking everything encourages other world writable directories, and
many systems these days don't get booted often enough to make much difference.
There are a number of scripts around to do smarter cleaning.


--
Bill Davidsen <davidsen@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
--
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
 
Old 05-21-2012, 04:29 PM
Andrew Haley
 
Default how to clean /tmp at shutdown?

On 05/20/2012 10:57 PM, Wolfgang S. Rupprecht wrote:
> sync; sync; sync;

It's been a few years since I saw that. :-)

Andrew.
--
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
 
Old 05-22-2012, 11:58 PM
"Wolfgang S. Rupprecht"
 
Default how to clean /tmp at shutdown?

Andrew Haley <aph@redhat.com> writes:
> On 05/20/2012 10:57 PM, Wolfgang S. Rupprecht wrote:
>> sync; sync; sync;
>
> It's been a few years since I saw that. :-)
>
> Andrew.

Yea, done for old times sake. ;-)

Never did know the story of the third sync. Always figured it was for
good luck.

-wolfgang
--
g+: https://plus.google.com/114566345864337108516/about
--
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
 
Old 05-23-2012, 12:46 AM
Chris Adams
 
Default how to clean /tmp at shutdown?

Once upon a time, Wolfgang S. Rupprecht <wolfgang.rupprecht@gmail.com> said:
> Andrew Haley <aph@redhat.com> writes:
> > On 05/20/2012 10:57 PM, Wolfgang S. Rupprecht wrote:
> >> sync; sync; sync;
> >
> > It's been a few years since I saw that. :-)
> >
> > Andrew.
>
> Yea, done for old times sake. ;-)
>
> Never did know the story of the third sync. Always figured it was for
> good luck.

Actually, you were supposed to type that as three different commands
(not on the same command line with just semicolons separating them).
The idea was that the first sync was the only one that really mattered;
the time it took you to type "sync<RETURN>" twice more was just how long
you should wait after the first one for it to really complete.

--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
--
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
 
Old 05-23-2012, 01:59 AM
"Wolfgang S. Rupprecht"
 
Default how to clean /tmp at shutdown?

Chris Adams <cmadams@hiwaay.net> writes:
> Actually, you were supposed to type that as three different commands
> (not on the same command line with just semicolons separating them).
> The idea was that the first sync was the only one that really mattered;
> the time it took you to type "sync<RETURN>" twice more was just how long
> you should wait after the first one for it to really complete.

The first sync was to queue up the blocks to be written. That sync(1)
call would not block. The second call would block until the flush
finished. The third one was just for luck. Or something.

Not sure what linux does. It sure seems that the first one blocks under
some conditions (like a write to a slow usb block device.)

-wolfgang
--
g+: https://plus.google.com/114566345864337108516/about
--
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
 
Old 05-23-2012, 01:32 PM
Dave Ihnat
 
Default how to clean /tmp at shutdown?

On Tue, May 22, 2012 at 06:59:25PM -0700, Wolfgang S. Rupprecht wrote:
> The first sync was to queue up the blocks to be written. That sync(1)
> call would not block. The second call would block until the flush
> finished. The third one was just for luck. Or something.

"Just to be sure."

Sync under Unix used to be systemwide--dunno if that was changed later, or
is different in Linux. But it caused some major headaches--essentially,
any user could cause the system to stop what it was doing and sync.

Not too bad if there are only a few users.

Very bad if there are, say, 300 users.

Back around 1983 or so, I was on contract at at Bell Labs working on the
5ESS Field Test Set. (This was the first portable Unix system--an 8086
with a custom MMU running System III in a box that _just_ fit under
an airline seat; weighed about 40 pounds. Booted from a floppy--my
work, that. I walked in one day with a floppy drive on my desk, and
a note that "we need a diskette driver written for the FTS by Friday."
My introduction to driver design in Unix...by fire.)

ANYWAY, one day the development server just...slowed...to...a...crawl. As
there were a few hundred users, and we were desperately trying to get 5ESS
out the door, this was a Bad Thing(TM). The OS support staff couldn't find
anything wrong with the system; we had everyone who knew anything looking
for the cause.

About this time, a new guy came to me to show me his nifty vi macro. He
was absolutely paranoid about losing anything he was editing if the system
crashed. SO, he wrote a macro that did "sync;sync;sync"...after *every*
keystroke.

We'd found our problem.

Cheers,
--
Dave Ihnat
dihnat@dminet.com
--
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
 

Thread Tools




All times are GMT. The time now is 02:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org