How to set NSD not restart when dies unexpectedly

Hi all,

Is there any option to set nsd do not restart when server dies unexpectedly.
For example, I want nsd to crash when triger a segfault.
I’m using nsd-4.1.17.

Thanks!

Hi Xu Mingjie,

That all depends on the init system you're using to run NSD. In order for someone to be able to help you, you need to provide more information about which operating system and init system you're running.

Regards,
Anand

Hi Anand,

I run nsd-4.1.17 (built from source) on ubuntu 16.04

uname -a

Linux ubuntu 4.15.0-96-generic #97~16.04.1-Ubuntu SMP Wed Apr 1 03:03:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

And I run nsd with following command:

/path/to/nsd-install-dir/sbin/nsd -d

Best regards,
Xu Mingjie