Symptoms
-
Unable to start Bind9 service with the following error message:
Dec 09 09:15:25 servername systemd[1]: /etc/systemd/system/bind9.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd.
-
The following
include
statement can be found in Bind9 service config:# cat /etc/systemd/system/bind9.service
.include /lib/systemd/system/bind9.service
[Service]
EnvironmentFile=-/etc/default/bind9.systemd
...
Cause
Misconfiguration of Bind9 service.
Resolution
-
Connect to the server via SSH.
-
Remove line with
.include
statement from/etc/systemd/system/bind9.service
file using any text editor like vi. -
Restart services:
# systemctl daemon-reload
# systemctl restart bind9