LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2013, 02:19 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,256

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Automagically deleting symlinks in /tmp - issues?


Hi.

I can't think of any good reason for a persistent symlink in /tmp. Sockets - yes; Symlinks - no. Can you?

My printer driver adds a symlink into /tmp (and forgets to remove them) for every job it prints. These build up until I discover them and delete them. The thought crossed my mind to put the following line in rc.local
Code:
find /tmp -type l -delete
 
Old 12-22-2013, 03:03 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,296

Rep: Reputation: Disabled
Or in /etc/rc.d/rc.local_shutdown as suggested in /etc/rc.d/rc.local.
 
Old 12-22-2013, 08:24 PM   #3
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
I found this for rc.local_shutdown and works just fine for me.

http://lowfatdaemon.blogspot.com/201...clear-tmp.html
 
Old 12-22-2013, 09:31 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,398

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
you could also toss that line in a cron job, I don't shutdown/reboot much
 
Old 12-23-2013, 04:38 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,256

Original Poster
Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Thanks guys. What matters is that nobody is saying "Don't Do that." I always check carefully with automatic deletions - it's really a case where the 'Sorcerer's Apprentice' in me can get loose.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot login after deleting /tmp folder balajis Linux - Newbie 4 08-26-2011 10:21 PM
Stop Mandriva from deleting files in /tmp make Mandriva 23 09-19-2008 05:33 AM
Deleting tmp files satimis Fedora 6 10-31-2004 09:59 PM
Deleting issues Roosta21 Linux - Software 4 09-07-2004 11:18 AM
deleting /tmp on boot-up perry Linux - Security 1 07-22-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration