From f8066ffefcb394dfa9394c81347472328105d43c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Dec 2017 08:51:16 +0200 Subject: Enable core dumps in bootstrap scripts --- etc/bootstrap/bbot-bootstrap-freebsd.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'etc/bootstrap/bbot-bootstrap-freebsd.sh') 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 -- cgit v1.1