#1  
Old 28th June 2007, 05:02
mrwasabi mrwasabi is offline
Member
 
Join Date: Feb 2007
Location: Louisiana
Posts: 48
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to mrwasabi Send a message via Yahoo to mrwasabi
Smile Remove temp files at shutdown.

Here's how I remove temporary internet files at shutdown in 7.04.

First of all we need to make a backup of our sysklogd file, to do this type this in at the terminal:

sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup

Next we need to edit that same file:

gksudo gedit /etc/init.d/sysklogd

Once your editor opens the file scroll down to the stop) section and enter this at the bottom of that section:

rm -fr /tmp/* /tmp/.??* see below
===============================================
stop)
log_begin_msg "Stopping system log daemon..."
start-stop-daemon --stop --quiet --pidfile $pidfile --name syslogd
log_end_msg $?
rm -fr /tmp/* /tmp/.??*

Save the file and close, now when you reboot your temp files will be deleted.
__________________
The superior man is modest in his speech, but exceeds in his actions.

Confucius, The Confucian Analects
Chinese philosopher & reformer (551 BC - 479 BC)
Reply With Quote
Sponsored Links
  #2  
Old 29th June 2007, 17:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
 
Default

Isn't the /tmp folder cleaned up automatically when you reboot? At least it's like that on Debian.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clamav temp files in /home/www/web1/tmp directory marinus General 2 18th January 2007 20:12
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53
large temp files secondsun Installation/Configuration 1 7th September 2006 18:27
Disk Full, temp files in ISPConfig ecorona Installation/Configuration 2 28th March 2006 01:15
Clearing caches, temp files equin General 3 20th March 2006 20:56


All times are GMT +2. The time now is 11:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.