<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2476&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / what deletes contents of /tmp directory? [SOLVED]]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2476</link>
		<description><![CDATA[The most recent posts in what deletes contents of /tmp directory? [SOLVED].]]></description>
		<lastBuildDate>Thu, 08 Nov 2018 17:00:20 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12703#p12703</link>
			<description><![CDATA[<div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>you can also choose to use tmpfs for /tmp in <span class="bbc">/etc/default/tmpfs</span>, where you can set <span class="bbc">RAMTMP=yes</span>.</p></div></blockquote></div><p>I didn&#039;t know that. That&#039;s a very nice shortcut. Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 08 Nov 2018 17:00:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12703#p12703</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12702#p12702</link>
			<description><![CDATA[<p>While you can do it in /<span class="bbc">etc/fstab</span>, you can also choose to use tmpfs for /tmp in <span class="bbc">/etc/default/tmpfs</span>, where you can set <span class="bbc">RAMTMP=yes</span>.</p><p>I think that the safest assumption about /tmp is that you cannot guarantee that anything in /tmp will survive a reboot, neither can you guarantee that it won&#039;t survive.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 08 Nov 2018 16:48:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12702#p12702</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12699#p12699</link>
			<description><![CDATA[<p>P.S. I&#039;ve been doing some reading on /tmp and tmpfs and it seems that on Debian/Devuan /tmp is a normal directory by default. For /tmp to be a tmpfs, user has to add an entry in /etc/fstab.</p><p>I can confirm that on my ASCII installation /tmp is a regular directory (notice that /tmp does not appear in the last column):</p><div class="codebox"><pre><code>bruno@thinkpad:~$ df -h | grep tmpfs
tmpfs           773M  1.2M  771M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.0G   31M  1.9G   2% /run/shm
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
tmpfs           772M   32K  772M   1% /run/user/1000</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 08 Nov 2018 14:35:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12699#p12699</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12698#p12698</link>
			<description><![CDATA[<div class="quotebox"><cite>GNUser wrote:</cite><blockquote><div><p>Geoff, I was sloppy in post #2.</p></div></blockquote></div><p>But not as sloppy as me! :-)</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 08 Nov 2018 14:33:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12698#p12698</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12696#p12696</link>
			<description><![CDATA[<p>Geoff, I was sloppy in post #2. What is in <span class="bbc">/etc/rcS.d/</span> is a link, obviously. The actual service file is <span class="bbc">/etc/init.d/checkroot-bootclean.sh</span>. (I fixed post #2 now.)</p><p>First, looking inside the service file I see that it calls the <span class="bbc">clean_all</span> function, which it sources from <span class="bbc">/lib/init/bootclean.sh</span></p><p>Then, looking inside <span class="bbc">/lib/init/bootclean.sh</span> I see at the top that the purpose of its functions is to &quot;Clean /tmp, /run and /var/lock if not mounted as tmpfs&quot;. The <span class="bbc">clean_all</span> function calls <span class="bbc">clean_tmp</span></p><p>At the end of <span class="bbc">clean_tmp</span> function definition there are two commands: One is to &quot;remove all old files&quot; and the other removes &quot;all empty directories&quot;. </p><p>So if <span class="bbc">/tmp</span> is not mounted as tmpfs, the checkroot-bootclean.sh service deletes old files and empty directories in <span class="bbc">/tmp</span> but does not seem to guarantee that <span class="bbc">/tmp</span> will be empty. </p><p>That&#039;s the story as I understand it, but there probably are some details that I&#039;m missing.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 08 Nov 2018 13:59:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12696#p12696</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12695#p12695</link>
			<description><![CDATA[<p>The comment in <span class="bbc">/etc/rcS.d/S08checkroot-bootclean.sh</span> seems to suggest that it is only the mount point that is cleaned out, before anything is mounted over the top of it.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 08 Nov 2018 13:27:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12695#p12695</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12694#p12694</link>
			<description><![CDATA[<p>Whoops! I got the wrong file!</p><div class="codebox"><pre><code>grep tmp /etc/rcS.d/S08checkroot-bootclean.sh 
	# Clean /tmp, /run and /run/lock.  Remove the .clean files to
	rm -f /tmp/.clean /run/.clean /run/lock/.clean</code></pre></div><p>Sorry!</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 08 Nov 2018 13:24:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12694#p12694</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12693#p12693</link>
			<description><![CDATA[<p>Is /tmp guaranteed to be empty at Boot?</p><div class="codebox"><pre><code>grep tmp /etc/rcS.d/S06checkroot.sh</code></pre></div><p>returns nothing!</p><p>As it is fairly common to mount /tmp as a tmpfs, this will tend to leave it empty on a reboot.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 08 Nov 2018 13:22:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12693#p12693</guid>
		</item>
		<item>
			<title><![CDATA[Re: what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12680#p12680</link>
			<description><![CDATA[<p>1. The <span class="bbc">checkroot-bootclean.sh</span> service (service file is in <span class="bbc">/etc/init.d/</span>, link in <span class="bbc">/etc/rcS.d/</span>)<br />2. At boot<br />3. Via TMPTIME variable in <span class="bbc">/etc/default/rcS</span></p><p>Is this correct?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 07 Nov 2018 19:49:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12680#p12680</guid>
		</item>
		<item>
			<title><![CDATA[what deletes contents of /tmp directory? [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12678#p12678</link>
			<description><![CDATA[<p>Some questions about <span class="bbc">/tmp</span>:</p><p>1. Which utility or service is responsible for deleting the contents of <span class="bbc">/tmp</span>?<br />2. Does the deletion happen at time of shutdown or boot?<br />3. Is there a way to change the deletion settings? (I cannot find <span class="bbc">/etc/tmp*</span> or <span class="bbc">/etc/temp*</span>)</p><p>Just wondering and trying to better understand things. I&#039;m on Devuan ASCII if it matters.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 07 Nov 2018 19:35:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12678#p12678</guid>
		</item>
	</channel>
</rss>
