summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab79790)
raw | patch | inline | side by side (parent: ab79790)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 5 Feb 2008 22:22:01 +0000 (23:22 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 5 Feb 2008 22:22:01 +0000 (23:22 +0100) |
If this option is enabled, the core file limit will be set to unlimited when
executing the init script.
executing the init script.
debian/collectd.default | patch | blob | history | |
debian/collectd.init.d | patch | blob | history |
index 5ef6a31b9cfd1bd3b5925e413282642ac63774e8..284a38b1a2a74aa6939332a83304046f25294515 100644 (file)
--- a/debian/collectd.default
+++ b/debian/collectd.default
# 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 0fa14d8dbb3b7713d045702ecf5337807c4775d8..207588726abc61bc1999a1dac6b4d0ab714f23e9 100755 (executable)
--- a/debian/collectd.init.d
+++ b/debian/collectd.init.d
exit 0
fi
+if test "$ENABLE_COREFILES" == 1; then
+ ulimit -c unlimited
+fi
+
if test "$USE_COLLECTDMON" == 1; then
_PIDFILE="$COLLECTDMON_PIDFILE"
else