Move unbound systemd config to separate file

This commit is contained in:
Girish Ramakrishnan
2017-01-30 12:28:01 -08:00
parent 7c1e056152
commit 56b0f57e11
2 changed files with 14 additions and 16 deletions

View File

@@ -0,0 +1,14 @@
# The default ubuntu unbound service uses SysV fallback mode, we want a proper unit file so unbound gets restarted correctly
[Unit]
Description=Unbound DNS Resolver
After=network.target
[Service]
PIDFile=/run/unbound.pid
ExecStart=/usr/sbin/unbound -d
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target