diff options
author | Bill Nottingham <notting@redhat.com> | 2004-09-27 19:53:10 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-09-27 19:53:10 +0000 |
commit | 803690689d71725b50add163a17bb31fca9c8611 (patch) | |
tree | 0c9c684ddf80e1d69d0b9022c8a93350cb2eb54b /rc.d | |
parent | 6a84e46472aa3392049253b702673110121f8088 (diff) | |
download | initscripts-803690689d71725b50add163a17bb31fca9c8611.tar initscripts-803690689d71725b50add163a17bb31fca9c8611.tar.gz initscripts-803690689d71725b50add163a17bb31fca9c8611.tar.bz2 initscripts-803690689d71725b50add163a17bb31fca9c8611.tar.xz initscripts-803690689d71725b50add163a17bb31fca9c8611.zip |
bacport daemon coredump file support
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 0d3d755c..2293a20f 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -133,9 +133,8 @@ daemon() { [ -n "${pid:-}" -a -z "${force:-}" ] && return - # make sure it doesn't core dump anywhere; while this could mask - # problems with the daemon, it also closes some security problems - ulimit -S -c 0 >/dev/null 2>&1 + # make sure it doesn't core dump anywhere unless requested + ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1 # if they set NICELEVEL in /etc/sysconfig/foo, honor it [ -n "$NICELEVEL" ] && nice="nice -n $NICELEVEL" |