How to stop unbound server?

Hi,

I am new to unbound server. I have installed it, but did not find the script to start and stop the server in those init.d directories. So I start unbound by
$ unbound -c

Now I want to stop the unbound server, is there any method besides ‘kill’?

Thanks!

Yingdi

Yingdi,

    I am new to unbound server. I have installed it, but did not
    find the script to start and stop the server in those init.d
    directories. So I start unbound by

    $ unbound -c <config>

    Now I want to stop the unbound server, is there any method
    besides 'kill'?
    
Well, there is always unbound-control to do this.

You are not saying which system you are using but in the contrib
directories there are various scripts for various system. It might fit
your needs or be an inspiration to roll your own.

Some system (such as Debian, FreeBSD) have pre-packaged distributions
which often have ready to install init scripts.

  jaap

Use ‘unbound-control stop’. As to your init script, how did you install unbound? If it was from source in the contrib/ directory there are init scripts for FreeBSD and Linux.

Hi Warren,

Use ‘unbound-control stop’.

I have tried this command, however, it said

[1308765414] unbound-control[25731:0] fatal error: could not exec unbound: No such file or directory

As to your init script, how did you install unbound? If it was from source in the contrib/ directory there are init scripts for FreeBSD and Linux.

Yes, I have found the script in contrib directory, and it works well now. Thanks!

Regards!

Yingdi

Im guessing, but looks like you have a mixture of old and new unbound’s installed which have different paths configured at install time and thus you using the ‘wrong’ unbound-control.