Files in /tmp directory - Is there any timelimit ?

2013-09-25 Thread Sreeram BS
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 ?

2013-09-25 Thread Olivier Nicole
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 ?

2013-09-25 Thread Volodymyr Kostyrko

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 ?

2013-09-25 Thread Sreeram BS
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 c.kw...@gmail.comwrote:

 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 ?

2013-09-25 Thread Frank Leonhardt


On 25/09/2013 10:05, Sreeram BS wrote:

On Wed, Sep 25, 2013 at 2:29 PM, Volodymyr Kostyrko c.kw...@gmail.comwrote:


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


tmp directory

2003-03-10 Thread Dick Hoogendijk
Debian linux cleans it's /tmp on every reboot (IF you reboot ;-)
FreeBSD does not clean up. Lots of files stay in /tmp

Question: can I manually clean /tmp or is it better to leave things
alone..??

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: tmp directory

2003-03-10 Thread Peter Elsner
You can manually clean it, but FreeBSD can be set to do so...

man periodic.conf

Peter

At 10:24 PM 3/10/2003 +0100, you wrote:
Debian linux cleans it's /tmp on every reboot (IF you reboot ;-)
FreeBSD does not clean up. Lots of files stay in /tmp
Question: can I manually clean /tmp or is it better to leave things
alone..??
--
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)
To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message
--
Peter Elsner [EMAIL PROTECTED]
Vice President Of Customer Service (And System Administrator)
1835 S. Carrier Parkway
Grand Prairie, Texas 75051
(972) 263-2080 - Voice
(972) 263-2082 - Fax
(972) 489-4838 - Cell Phone
(425) 988-8061 - eFax
I worry about my child and the Internet all the time, even though she's
too young to have logged on yet. Here's what I worry about. I worry
that 10 or 15 years from now, she will come to me and say Daddy, where
were you when they took freedom of the press away from the Internet?
-- Mike Godwin
Unix IS user friendly... It's just selective about who its friends are.
System Administration - It's a dirty job, but somebody said I had to do it.
If you receive something that says 'Send this to everyone you know,
pretend you don't know me.
Standard $500/message proofreading fee applies for UCE.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: tmp directory

2003-03-10 Thread dick hoogendijk
On 10 Mar Peter Elsner wrote:
 You can manually clean it, but FreeBSD can be set to do so...
 man periodic.conf

Thanks. To the others too (the rc.conf answer)

-- 
dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: tmp directory

2003-03-10 Thread parv
in message [EMAIL PROTECTED],
wrote Dick Hoogendijk thusly...

 Debian linux cleans it's /tmp on every reboot (IF you reboot ;-)
 FreeBSD does not clean up. Lots of files stay in /tmp
 
 Question: can I manually clean /tmp or is it better to leave things
 alone..??

In addition to previous reply, you can always mount (w/ proper
planning of ourse) /tmp as memory file system; see newfs(8) or
mount_mfs(8) (FreeBSD 4.7).


  - parv

-- 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message