summaryrefslogtreecommitdiff
path: root/testing/hosts/default/etc/profile.d
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hosts/default/etc/profile.d')
-rw-r--r--testing/hosts/default/etc/profile.d/coredumps.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/hosts/default/etc/profile.d/coredumps.sh b/testing/hosts/default/etc/profile.d/coredumps.sh
new file mode 100644
index 000000000..ea44c0ef6
--- /dev/null
+++ b/testing/hosts/default/etc/profile.d/coredumps.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+ulimit -c unlimited >/dev/null 2>&1
+install -m 1777 -d /var/local/dumps >/dev/null 2>&1
+echo "/var/local/dumps/core.%e.%p" > /proc/sys/kernel/core_pattern