From: Sebastian Harl Date: Tue, 5 Feb 2008 22:22:01 +0000 (+0100) Subject: collectd.init.d, collectd.default: Added ENABLE_COREFILES option. X-Git-Tag: collectd-4.3.0-1~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4a87fc585ae0d1245e4ea082bc565154138e0cf4;p=pkg-collectd.git collectd.init.d, collectd.default: Added ENABLE_COREFILES option. If this option is enabled, the core file limit will be set to unlimited when executing the init script. --- diff --git a/debian/collectd.default b/debian/collectd.default index 5ef6a31..284a38b 100644 --- a/debian/collectd.default +++ b/debian/collectd.default @@ -12,3 +12,7 @@ USE_COLLECTDMON=1 # default: 30 MAXWAIT=30 +# 0: do not enable core-files, 1: enable core-files ... if collectd crashes +# default: 0 +ENABLE_COREFILES=0 + diff --git a/debian/collectd.init.d b/debian/collectd.init.d index 0fa14d8..2075887 100755 --- a/debian/collectd.init.d +++ b/debian/collectd.init.d @@ -49,6 +49,10 @@ if test "$DISABLE" != 0; then exit 0 fi +if test "$ENABLE_COREFILES" == 1; then + ulimit -c unlimited +fi + if test "$USE_COLLECTDMON" == 1; then _PIDFILE="$COLLECTDMON_PIDFILE" else