mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add our own ddb.conf
This commit is contained in:
parent
86bb5c37c6
commit
a7d88d2cbf
15
src/etc/pfSense-ddb.conf
Normal file
15
src/etc/pfSense-ddb.conf
Normal file
@ -0,0 +1,15 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
# This file is read when going to multi-user and its contents piped thru
|
||||
# ``ddb'' to define debugging scripts.
|
||||
#
|
||||
# see ``man 4 ddb'' and ``man 8 ddb'' for details.
|
||||
#
|
||||
|
||||
script lockinfo=show locks; show alllocks; show lockedvnods
|
||||
|
||||
# kdb.enter.panic panic(9) was called.
|
||||
script kdb.enter.panic=textdump set; capture on; run lockinfo; show pcpu; bt; ps; alltrace; capture off; call doadump; reset
|
||||
|
||||
# kdb.enter.witness witness(4) detected a locking error.
|
||||
script kdb.enter.witness=run lockinfo
|
||||
@ -57,7 +57,7 @@ echo "Configuring crash dumps..."
|
||||
|
||||
# Setup ddb on all platforms.
|
||||
if [ ! -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
|
||||
/sbin/ddb /etc/ddb.conf
|
||||
/sbin/ddb /etc/${product}-ddb.conf
|
||||
fi
|
||||
|
||||
fsck_forced_iterations=`/bin/kenv pfsense.fsck.force`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user