{"id":328,"date":"2010-03-10T15:48:14","date_gmt":"2010-03-10T23:48:14","guid":{"rendered":"http:\/\/www.outflux.net\/blog\/?p=328"},"modified":"2010-03-10T15:48:14","modified_gmt":"2010-03-10T23:48:14","slug":"clearing-tmp-on-boot","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2010\/03\/10\/clearing-tmp-on-boot\/","title":{"rendered":"Clearing \/tmp on boot"},"content":{"rendered":"<p>I don&#8217;t like unconditionally clearing <code>\/tmp<\/code> on boot, since I&#8217;m invariably working on something in there when my system locks up.  But I do like <code>\/tmp<\/code> getting cleaned up from time to time.  As a compromise, I&#8217;ve set <code>TMPTIME=7<\/code> in <code>\/etc\/default\/rcS<\/code> so that only stuff older than 7 days is deleted when I reboot.<\/p>\n<p style='text-align:left'>&copy; 2010, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t like unconditionally clearing \/tmp on boot, since I&#8217;m invariably working on something in there when my system locks up. But I do like \/tmp getting cleaned up from time to time. As a compromise, I&#8217;ve set TMPTIME=7 in \/etc\/default\/rcS so that only stuff older than 7 days is deleted when I reboot. &copy; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18,14,19],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/328"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=328"}],"version-history":[{"count":1,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/328\/revisions\/329"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}