ragibkl / adblock-dns-server

Adblock DNS Server powered by Bancuh DNS and dnsdist-acme
https://bancuh.com/
MIT License
65 stars 14 forks source link

Bind does not restart on failure #155

Closed ragibkl closed 1 year ago

ragibkl commented 2 years ago

At the moment, I'm using simple bash script to start the self-update process, and bind concurrently. What should happen, is that when either process is killed, the script should kill both process and exit. This should cause the container to exit with failure as well. What should happen next is that docker would restart the whole container cleanly.

However, that's not working right now. At the moment, when 1 process is killed, the other process would continue normally.

ragibkl commented 2 years ago

Some way to do it: https://docs.docker.com/config/containers/multi-service_container/

ragibkl commented 1 year ago

Made some change here. Hopefully it works.

ragibkl commented 1 year ago

Will do more testing on this.

ragibkl commented 1 year ago

I think this works already. Closing.