LinuxQuestions.org
Review your favorite Linux distribution.
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-30-2011, 06:48 PM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Rep: Reputation: 3
Clearing /tmp and using sbopkg.


Hi all,
So I am thinking of writing a script that clears my /tmp partition on shutdown, but am wondering if this will affect the functionality of sbopkg.

I noticed that sbopkg creates a directory called SBo in /tmp when run. Prior to running sbopkg, I deleted this directory and any package files that were residing in /tmp.

So, will I have any issues? If so, I have obviously missed something in the way sbopkg functions.

Regards,
Jack.
 
Old 12-30-2011, 07:24 PM   #2
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
No, I have limited disk space and clear /tmp/SBo regularly. sbopkg syncing/searching for updates still works (because it found updates). Other sbopkg functions work too; you shouldn't have any problems with sbopkg.
 
Old 12-30-2011, 07:49 PM   #3
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by jamesf View Post
No, I have limited disk space and clear /tmp/SBo regularly. sbopkg syncing/searching for updates still works (because it found updates). Other sbopkg functions work too; you shouldn't have any problems with sbopkg.
Ok thanks, now I need to devise a safe way of clearing /tmp.
 
Old 12-30-2011, 08:42 PM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
IIRC at some (recent-ish) point Slackware added support for a /etc/rc.d/rc.local-shutdown file in which you placed commands you wanted executed on shutdown. Make sure of the name, create one, chmod +x it, and you're probably good to go.

I'm not sure, though, what files in /tmp might be being used during the shutdown process.
 
Old 12-30-2011, 11:17 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
you can also set the variable CLEANUP in /etc/sbopkg/sbopkg.conf. In mine I got
Code:
CLEANUP=${CLEANUP:-YES}
this way build files are deleted just before sbopkg exits ending the task.

You will still need an occasional
Code:
rm -fR /tmp/SBo/*
for the slackbuilds.org's scripts that you run without sbopkg.
 
  


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
[SOLVED] Clearing /tmp 2handband Slackware 24 01-09-2011 11:45 AM
[SOLVED] Clearing /tmp at shutdown 2handband Slackware 8 11-09-2010 04:14 PM
TRAC - something is clearing /tmp Lantzvillian Linux - Software 1 03-06-2010 08:49 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
[SOLVED] clearing /tmp at reboot sylye Debian 2 08-26-2006 04:42 AM

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

All times are GMT -5. The time now is 06:34 AM.

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