From 4a87fc585ae0d1245e4ea082bc565154138e0cf4 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 5 Feb 2008 23:22:01 +0100 Subject: [PATCH] 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. --- debian/collectd.default | 4 ++++ debian/collectd.init.d | 4 ++++ 2 files changed, 8 insertions(+) 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 -- 2.30.2