Re: Cleaning /tmp

2012-03-05 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/03/2012 11:55 AM, Geoffrey Leach wrote: > Fedora (not just 16) leaves junk in /tmp. It's also using some of > that junk, for example keyring-PRgjGV/. > > So what's the best way to reduce the clutter? Is there a service? I like to mount /tmp as t

Re: Cleaning /tmp

2012-03-04 Thread Tim
On Sat, 2012-03-03 at 19:36 +, James Wilkinson wrote: > One option is tmpfs. Put something like this in /etc/fstab: > none/tmptmpfs nodev,noexec 0 0 > and everything in /tmp will be deleted whenever the system is rebooted > or powered down (unless you h

Re: Cleaning /tmp

2012-03-03 Thread James Wilkinson
Geoffrey Leach wrote: > Fedora (not just 16) leaves junk in /tmp. It's also using some of that > junk, for example keyring-PRgjGV/. > > So what's the best way to reduce the clutter? Is there a service? One option is tmpfs. Put something like this in /etc/fstab: none/tmp

Re: Cleaning /tmp

2012-03-03 Thread Reindl Harald
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 \ >>

Re: Cleaning /tmp

2012-03-03 Thread 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 /va

Re: Cleaning /tmp

2012-03-03 Thread Andy Blanchard
On 3 March 2012 16:55, Geoffrey Leach wrote: > Fedora (not just 16) leaves junk in /tmp. It's also using some of that > junk, for example keyring-PRgjGV/. > Another instance of a Linux regression, IMHO. Used to be anything in /tmp was supposedly safe to be erased on boot, and often was. Then a

Re: Cleaning /tmp

2012-03-03 Thread Reindl Harald
Am 03.03.2012 17:55, schrieb Geoffrey Leach: > Fedora (not just 16) leaves junk in /tmp. It's also using some of that > junk, for example keyring-PRgjGV/. > > So what's the best way to reduce the clutter? Is there a service? as default there are 30d instead my 1d [root@srv-rhsoft:~]$ cat /etc

Re: cleaning /tmp directory

2010-04-01 Thread Tim
Tim: >> Not quite... It will delete not recently looked at files, whether you >> actually used them or not. It's an important distinction, here's why: Adalbert Prokop: > I did not want to exaggerate the distinction between > creation/modification/access time - simplifications are helpful in > ex

Re: cleaning /tmp directory

2010-04-01 Thread Tim
On Wed, 2010-03-31 at 16:28 -0400, Tom H wrote: > Or turn /tmp into a tmpfs mount. That can come back to bite you when you go to burn a CD or DVD, the burner uses /tmp to make temp files, and you run out real RAM. -- [...@localhost ~]$ uname -r 2.6.27.25-78.2.56.fc9.i686 Don't send private repl

Re: cleaning /tmp directory

2010-03-31 Thread Bill Davidsen
Wolfgang S. Rupprecht wrote: > Gregory Hosler writes: >> On 03/31/2010 09:52 PM, Maurizio Marini wrote: >>> Hi there >>> i need a cron script that cleans every day crap into /tmp >>> I have there a lot of temp files but i dunno which ones can be safely >>> wiped, >>> and it is very time comsumin

Re: cleaning /tmp directory

2010-03-31 Thread Tom H
>>> i need a cron script that cleans every day crap into /tmp >>> I have there a lot of temp files but i dunno which ones can be safely wiped, >>> and it is very time comsuming job, too. >> There already is a cron that will delete file out of /tmp that are 10 days >> old. > In addition, at shutd

Re: cleaning /tmp directory

2010-03-31 Thread Wolfgang S. Rupprecht
Gregory Hosler writes: > On 03/31/2010 09:52 PM, Maurizio Marini wrote: >> Hi there >> i need a cron script that cleans every day crap into /tmp >> I have there a lot of temp files but i dunno which ones can be safely wiped, >> and it is very time comsuming job, too. >> Any script written by som

Re: cleaning /tmp directory

2010-03-31 Thread Adalbert Prokop
Am 31.03.2010 16:51, schrieb Tim: Hi! > On Wed, 2010-03-31 at 15:58 +0200, Adalbert Prokop wrote: >> There is no need to reinvent the wheel. Fedora comes with tmpwatch, >> which does exactly what you want - scans /tmp (and possibly other >> directories) and deletes unused files. > Not quite...

Re: cleaning /tmp directory

2010-03-31 Thread suvayu ali
On 31 March 2010 07:51, Tim wrote: > On Wed, 2010-03-31 at 15:58 +0200, Adalbert Prokop wrote: >> There is no need to reinvent the wheel. Fedora comes with tmpwatch, >> which does exactly what you want - scans /tmp (and possibly other >> directories) and deletes unused files. > > Not quite...  It

Re: cleaning /tmp directory

2010-03-31 Thread Tim
On Wed, 2010-03-31 at 15:58 +0200, Adalbert Prokop wrote: > There is no need to reinvent the wheel. Fedora comes with tmpwatch, > which does exactly what you want - scans /tmp (and possibly other > directories) and deletes unused files. Not quite... It will delete not recently looked at files,

Re: cleaning /tmp directory

2010-03-31 Thread Adalbert Prokop
Am 31.03.2010 15:52, schrieb Maurizio Marini: Hi! > i need a cron script that cleans every day crap into /tmp > I have there a lot of temp files but i dunno which ones can be safely wiped, > and it is very time comsuming job, too. > Any script written by someone of you will be very apreciated :)

Re: cleaning /tmp directory

2010-03-31 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/31/2010 09:52 PM, Maurizio Marini wrote: > Hi there > i need a cron script that cleans every day crap into /tmp > I have there a lot of temp files but i dunno which ones can be safely wiped, > and it is very time comsuming job, too. > Any script