Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a daemon I wrote in c/c++. i normally run ulimit -c unlimited before starting the daemon so if it segfaults I'll get the core file. Is there a way I can set the system to by default dump core files without having to specify the ulimit for each session? fyi- i'm rolling on debian.

share|improve this question
both answers are spot on but I can only select one as accepted – user7321 Jul 6 '09 at 21:33
up vote 2 down vote accepted

I would imagine editing /etc/security/limits.conf can control it for most normal login sessions.

For anything else (cron jobs, system services etc), you will probably want to just do it in the script kicking it off.

share|improve this answer

You can also programmatically enable cores in your daemon with setrlimit - it's probably a good idea to trigger that with a command line option.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.