kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Merge branch 'updae-unbound' of kemonine/docs into master

This commit is contained in:
jmf 2018-08-12 04:23:49 +00:00 committed by Gitea
commit 3bd9c601b7
1 changed files with 20 additions and 0 deletions

View File

@ -90,6 +90,26 @@ systemctl start roothints.timer
```
## Setup Unbound to start *after* Docker
*See [here (link)](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-Managing_Services_with_systemd-Unit_Files#brid-Managing_Services_with_systemd-Extending_Unit_Config) for more details.*
This is mainly here to ensure that unbound starts *after* the Docker network comes up as it's configured to listen on the Docker network. It'll fail to load/restart if the bind address isn't present when it is started.
``` bash
mkdir -p /etc/systemd/system/unbound.service.d/
cat > /etc/systemd/system/unbound.service.d/00-after-docker.conf <<EOF
[Unit]
Requires=docker.socket docker.service
After=docker.socket docker.service
Restart=always
RestartSec=5
EOF
systemctl daemon-reload
```
## Adjust NetworkManager Config
Edit ```/etc/NetworkManager/NetworkManager.conf```