/tmp files

jd1008 jd1008 at gmail.com
Thu Feb 19 17:34:31 UTC 2015


On 02/19/2015 09:56 AM, Matthew Miller wrote:
> On Fri, Feb 20, 2015 at 12:46:31AM +1030, Tim wrote:
>>> Neither, it's a function of it being on tmpfs and being rebooted -
>>> it's not persistent. Whereas /var/tmp is managed by
>>> systemd-tmpfiles-clean.timer.
>> And on those systems that are left running 24 hours a day?
> Note that systemd-tmpfiles also cleans /tmp in its default
> configuration. See /usr/lib/tmpfiles.d/tmp.conf, which contains (with
> some other stuff):
>
>    d /tmp 1777 root root 10d
>    d /var/tmp 1777 root root 30d
>
>
What about

/usr/bin/systemd-tmpfiles
/usr/lib/tmpfiles.d
/usr/lib/dracut/modules.d/98systemd/dracut-tmpfiles.conf
/usr/lib/systemd/system/systemd-tmpfiles-clean.service
/usr/lib/systemd/system/systemd-tmpfiles-clean.timer
/usr/lib/systemd/system/systemd-tmpfiles-setup-dev.service
/usr/lib/systemd/system/systemd-tmpfiles-setup.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
/usr/lib/systemd/system/timers.target.wants/systemd-tmpfiles-clean.timer

Which of these should be disabled in order to make my /tmp files to 
survive reboot?



More information about the users mailing list