On Thu, Jun 23, 2011 at 12:32:40AM +0200, ter Voorde Informatiesystemen wrote:
> You are completely right.
> 
> I was only wondering if I do not set the variable explicitly, the 
> default value would be 0 or 1.

Ok, that I can not find from the documentation,
only that setting it to 0 most probably is a change.

The default is:
 # uname -a
 OpenBSD localhost.localdomain 4.9 GENERIC.MP#47 i386
 # sysctl ddb.panic
 ddb.panic=1

It is very easy to check, if you have an installation...

/ Raimo


> 
> Kind regards,
> 
> Frank
> 
> On 06/22/11 17:12, Raimo Niskanen wrote:
> >On Wed, Jun 22, 2011 at 11:45:49AM -0300, Marcos Laufer wrote:
> >>I am sorry, this confused me, and i didn't quite understand.
> >>
> >>Just to be clear:
> >>
> >>ddb.panic=0 will boot instead of dropping you into a ddb?
> >>
> >>Or is it ddb.panic=1 the option that will make the system boot?
> >Please... are we not a wee bit lazy now... man sysctl.conf:
> >
> >EXAMPLES
> >      To turn on IP forwarding, one would use the following line:
> >
> >            net.inet.ip.forwarding=1
> >
> >      To cause the kernel to reboot on a panic, instead of dropping into 
> >      the
> >      debugger, the following can be used:
> >
> >            ddb.panic=0
> >
> >>
> >>Regards,
> >>
> >>David Coppa wrote:
> >>>On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote:
> >>>
> >>>
> >>>>In /etc/sysctl.conf I see the following commented line:
> >>>>
> >>>>#ddb.panic=0
> >>>>
> >>>>and nothing else about ddb.panic is present there. With other words,
> >>>>I guess: 'ddb.panic=0' is the default boot time setting and does not
> >>>>have to be set explicitly.
> >>>>
> >>>>I now suppose: on a kernel panic, this system will not drop into ddb
> >>>>(kind-of waiting for someone to retrieve useful information about
> >>>>the panic) and is most likely to reboot. Is that correct?
> >>>>
> >>>Exactly the opposite:
> >>>
> >>>$ sysctl ddb.panic
> >>>ddb.panic=1
> >>>
> >>>You need to uncomment that line in /etc/sysctl.conf.
> >>>
> >>>Cheers,
> >>>David

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

Reply via email to