aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-09-27 19:49:55 +0000
committerBill Nottingham <notting@redhat.com>2004-09-27 19:49:55 +0000
commite5860bb988bb0b19d72cae0a3a07125c8c042019 (patch)
treefeae8f67ba79bcbb9a33b0fec1065b33cdc931e2 /rc.d/init.d/functions
parent8d6e12c4ea11e40aa98ce42b49ae5e7e5d81bd85 (diff)
downloadinitscripts-e5860bb988bb0b19d72cae0a3a07125c8c042019.tar
initscripts-e5860bb988bb0b19d72cae0a3a07125c8c042019.tar.gz
initscripts-e5860bb988bb0b19d72cae0a3a07125c8c042019.tar.bz2
initscripts-e5860bb988bb0b19d72cae0a3a07125c8c042019.tar.xz
initscripts-e5860bb988bb0b19d72cae0a3a07125c8c042019.zip
allow daemon to coredump if requested (#130175)
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions5
1 files changed, 2 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index d1641782..819230fd 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -134,9 +134,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"