summaryrefslogtreecommitdiff
path: root/misc/enablecoredumps
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-12-07 00:15:00 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-12-07 00:15:00 -0600
commit705b49a0d66cfaaa3b41bbba651e6c614cdfbced (patch)
tree6bff935791d4f08295d1a15e091524379d42a1cb /misc/enablecoredumps
parenteb0ec035d14325a6b7bbb4fa3fe294a7beee2b9f (diff)
downloadscripts-705b49a0d66cfaaa3b41bbba651e6c614cdfbced.tar.xz
scripts-705b49a0d66cfaaa3b41bbba651e6c614cdfbced.zip
start of compress script, core dump script, lsdu, and setup script
Diffstat (limited to 'misc/enablecoredumps')
-rwxr-xr-xmisc/enablecoredumps3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/enablecoredumps b/misc/enablecoredumps
new file mode 100755
index 0000000..e435cc7
--- /dev/null
+++ b/misc/enablecoredumps
@@ -0,0 +1,3 @@
+#!/bin/sh
+ulimit -c unlimited
+sysctl -w kernel.core_pattern=/tmp/core-%e.%p.%h.%t