LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Clearing /tmp and using sbopkg. (https://www.linuxquestions.org/questions/slackware-14/clearing-tmp-and-using-sbopkg-921291/)

VisionIncision 12-30-2011 06:48 PM

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.

jamesf 12-30-2011 07:24 PM

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.

VisionIncision 12-30-2011 07:49 PM

Quote:

Originally Posted by jamesf (Post 4562193)
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.

jamesf 12-30-2011 08:42 PM

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.

ponce 12-30-2011 11:17 PM

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.


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