From mboxrd@z Thu Jan 1 00:00:00 1970 From: mkatiyar@gmail.com (Manish Katiyar) Date: Thu, 26 May 2011 14:55:29 -0700 Subject: How to limit the total size used by core files or automatically delete old corefiles. In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, May 26, 2011 at 5:31 AM, SADA SIVA REDDY S wrote: > 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 > 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 > core files (not individual core files) ? > > Any inputs appreciated. May be "man logrotate" can help. -- Thanks - Manish