/tmp files
Matthew Miller
mattdm at fedoraproject.org
Thu Feb 19 20:20:22 UTC 2015
On Thu, Feb 19, 2015 at 10:34:31AM -0700, jd1008 wrote:
> > d /tmp 1777 root root 10d
> > d /var/tmp 1777 root root 30d
> What about
[...]
> Which of these should be disabled in order to make my /tmp files to
> survive reboot?
None of them. Files in /etc/tmpfiles.d override /usr/lib/tmpfiles.d, so
create /etc/tmpfiles.d/tmp.conf with the line
d /tmp 1777 root root -
(with - replacing 10d) and that _should_ do it (untested but I strongly
believe the theory).
But personally, I think I'd consider stashing non-temporary files
somewhere else, and just leaving /tmp as-is.
--
Matthew Miller
<mattdm at fedoraproject.org>
Fedora Project Leader
More information about the users
mailing list