Files in /tmp directory - Is there any timelimit ?
Hi, I am using FreeBSD 9. I would like to know as to what is the lifetime of the files in /tmp directory. The general description says that these files *may* not be preserved across a reboot. By this I interpret that if the system is not rebooted, then these files will be there forever. But, just wanted a confirmation to see if there is any lifespan (expiry-time) attached with these files (ie the system would flush these files after some days/months etc automatically). Please inform. Regards, Sreeram ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Files in /tmp directory - Is there any timelimit ?
Hi Sreeram, >I am using FreeBSD 9. I would like to know as to what is the lifetime of > the files in /tmp directory. The general description says that these files > *may* not be preserved across a reboot. By this I interpret that if the > system is not rebooted, then these files will be there forever. But, just > wanted a confirmation to see if there is any lifespan (expiry-time) > attached with these files (ie the system would flush these files after some > days/months etc automatically). No. Applications should be responsible for cleaning their temporary files. Bests, Olivier > > Please inform. > > Regards, > Sreeram > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Files in /tmp directory - Is there any timelimit ?
25.09.2013 11:34, Sreeram BS wrote: Hi, I am using FreeBSD 9. I would like to know as to what is the lifetime of the files in /tmp directory. The general description says that these files *may* not be preserved across a reboot. By this I interpret that if the system is not rebooted, then these files will be there forever. But, just wanted a confirmation to see if there is any lifespan (expiry-time) attached with these files (ie the system would flush these files after some days/months etc automatically). Not by default. There's a clean-tmps periodic task which can be enabled @/etc/periodic.conf. It defaults to three days. -- Sphinx of black quartz, judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Files in /tmp directory - Is there any timelimit ?
Does this auto-cleanup apply to files in /var/tmp directory also. The generic description says that the files in this directory can stay across reboots. So, does this survive auto-cleanup too? regards, Sreeram On Wed, Sep 25, 2013 at 2:29 PM, Volodymyr Kostyrko wrote: > 25.09.2013 11:34, Sreeram BS wrote: > >> Hi, >> I am using FreeBSD 9. I would like to know as to what is the lifetime >> of >> the files in /tmp directory. The general description says that these files >> *may* not be preserved across a reboot. By this I interpret that if the >> system is not rebooted, then these files will be there forever. But, just >> wanted a confirmation to see if there is any lifespan (expiry-time) >> attached with these files (ie the system would flush these files after >> some >> days/months etc automatically). >> > > Not by default. There's a clean-tmps periodic task which can be enabled > @/etc/periodic.conf. It defaults to three days. > > -- > Sphinx of black quartz, judge my vow. > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Files in /tmp directory - Is there any timelimit ?
On 25/09/2013 10:05, Sreeram BS wrote: On Wed, Sep 25, 2013 at 2:29 PM, Volodymyr Kostyrko wrote: 25.09.2013 11:34, Sreeram BS wrote: Hi, I am using FreeBSD 9. I would like to know as to what is the lifetime of the files in /tmp directory. The general description says that these files *may* not be preserved across a reboot. By this I interpret that if the system is not rebooted, then these files will be there forever. But, just wanted a confirmation to see if there is any lifespan (expiry-time) attached with these files (ie the system would flush these files after some days/months etc automatically). Not by default. There's a clean-tmps periodic task which can be enabled @/etc/periodic.conf. It defaults to three days. -- Sphinx of black quartz, judge my vow. Does this auto-cleanup apply to files in /var/tmp directory also. The generic description says that the files in this directory can stay across reboots. So, does this survive auto-cleanup too? regards, Sreeram The default is to clean up /tmp only, but this can be changed in periodic.conf If you're struggling with this, note that a default periodic.conf is in /etc/defaults and it's individual values can be over-ridden by /etc/periodic.conf IF IT EXISTS. Regards, Frank. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"