[kwlug disc.] Bash startup/limiting core dumps

pnijjar at utm.utoronto.ca pnijjar at utm.utoronto.ca
Fri Jan 12 22:16:39 EST 2007


So we're running a wiki (TWiki, if it matters) that appears to be dumping core 
right in the directory where its binaries are located. (I didn't know that Perl 
programs dumped core, but whatever.) 

I don't feel all that motivated to fix the problem, but I would like to stop the 
core dumps. I don't understand enough about Apache/system processes to do so, 
however. 

Here's my guess: if apache is running as my user account, and in that user 
account's .bash_profile I put a line like: 

ulimit -c 0 

then my hope is that apache will not dump core. 

Would the process even read the account's .bash_profile when starting up? 

Unfortunately, I think that apache is not running as my user account to access 
my files, but rather as a "nobody" user. Am I stuck now? I don't have root on 
this machine. 

Or is there some other way to limit core dumps that I don't know about? 

- Paul





More information about the KWLUG-Disc mailing list