OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Kernel Panics
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: Kernel Panics  (Read 17758 times)

tuaris

  • Newbie
  • *
  • Posts: 41
  • Karma: 4
    • View Profile
    • Unibia.net
Re: Kernel Panics
« Reply #30 on: September 09, 2017, 08:03:50 pm »
The main inconvenience here is how long the device takes to actually shutdown the OS and start the reboot.   It takes about 5 minutes to do the dump for the stack trace.  Anyway we can disable that and speed up the process a bit?  I'm willing to live with this if the recovery period can be speed-up.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: Kernel Panics
« Reply #31 on: September 11, 2017, 03:17:48 pm »
Add this as a file under /usr/local/etc/rc.syshook.d/00-reset.early

Code: [Select]
#!/bin/sh
cp /etc/ddb.conf /etc/ddb.conf.bak
(grep -v kdb.enter.panic /etc/ddb.conf.bak; echo "script kdb.enter.default=reset") > /etc/ddb.conf
rm -f /etc/ddb.conf.bak
ddb /etc/ddb.conf

# chmod 700 /usr/local/etc/rc.syshook.d/00-reset.early
# /usr/local/etc/rc.syshook.d/00-reset.early

It should automatically apply after reboot.

You can emulate a crash with the following command to confirm:

# sysctl debug.kdb.panic=1


Cheers,
Franco
Logged

  • Print
Pages: 1 2 [3]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Kernel Panics
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2