Thread (4 messages) 4 messages, 3 authors, 2011-05-27

How to limit the total size used by core files or automatically delete old corefiles.

From: SADA SIVA REDDY S <hidden>
Date: 2011-05-27 08:11:35

Thanks Andrej and Manish.
I will try to see if I can use logrotat or atleast buy the logic from it.

Thanks,
SADA

On Thu, May 26, 2011 at 10:55 PM, Manish Katiyar [off-list ref] wrote:
On Thu, May 26, 2011 at 5:31 AM, SADA SIVA REDDY S
[off-list ref] wrote:
quoted
Hi  All,
   I have a situation like below. I am using RHEL 5.

I have multiple user processes running on my machine.
I have set the appropriate sizes for core file size.
But my process maangement demon is designed to restart any process that
terminates.
Hence the process starts up again.
If I have a very bad nasty defect, it will keep on filling my machine
with
quoted
core files until I run out of space on the partition.

My Questions:

Is there a provision in Linux to automatically cleanup the old corefiles
when we reach a certain limit ?
Is there a provision in Linux to set a upper limit for space occupied by
all
quoted
core files (not individual core files) ?

Any inputs appreciated.
May be "man logrotate" can help.

--
Thanks -
Manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110527/a4d8edad/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help