aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bootstrap/bbot-bootstrap-freebsd.sh10
-rwxr-xr-xetc/bootstrap/bbot-bootstrap-linux.sh5
-rwxr-xr-xetc/bootstrap/bbot-bootstrap-macos.sh4
3 files changed, 18 insertions, 1 deletions
diff --git a/etc/bootstrap/bbot-bootstrap-freebsd.sh b/etc/bootstrap/bbot-bootstrap-freebsd.sh
index 4c19435..0b1d38d 100755
--- a/etc/bootstrap/bbot-bootstrap-freebsd.sh
+++ b/etc/bootstrap/bbot-bootstrap-freebsd.sh
@@ -11,6 +11,14 @@ if ! jobs="$(sysctl -n hw.ncpu)"; then
jobs=1
fi
+# Enable core dumps (into /tmp by default) for postmortem debugging. These
+# are normally enabled by default but check also:
+#
+# sysctl -a | grep kern.coredump
+#
+cd /tmp
+ulimit -c unlimited
+
# Note: bootstrap script options must come before build options.
#
"$(dirname "$0")/bbot-bootstrap.sh" \
@@ -23,5 +31,5 @@ fi
#
if test "$?" -eq 0; then
sleep 5
- sudo shutdown -h now
+ sudo shutdown -p now
fi
diff --git a/etc/bootstrap/bbot-bootstrap-linux.sh b/etc/bootstrap/bbot-bootstrap-linux.sh
index f9ed447..0856e06 100755
--- a/etc/bootstrap/bbot-bootstrap-linux.sh
+++ b/etc/bootstrap/bbot-bootstrap-linux.sh
@@ -8,6 +8,11 @@ if ! jobs="$(nproc)"; then
jobs=1
fi
+# Enable core dumps (into /tmp by default) for postmortem debugging.
+#
+cd /tmp
+ulimit -c unlimited
+
# Note: bootstrap script options must come before build options.
#
"$(dirname "$0")/bbot-bootstrap.sh" \
diff --git a/etc/bootstrap/bbot-bootstrap-macos.sh b/etc/bootstrap/bbot-bootstrap-macos.sh
index 9c1ef1f..21c17fe 100755
--- a/etc/bootstrap/bbot-bootstrap-macos.sh
+++ b/etc/bootstrap/bbot-bootstrap-macos.sh
@@ -10,6 +10,10 @@ if ! jobs="$(sysctl -n hw.ncpu)"; then
jobs=1
fi
+# Enable core dumps (into /cores/) for postmortem debugging.
+#
+ulimit -c unlimited
+
# Note: bootstrap script options must come before build options.
#
"$(dirname "$0")/bbot-bootstrap.sh" \