Debian using /etc/init.d/bind9 instead of /etc/systemd/system/named

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,051
It was found that some Debian 10 installs were using /etc/init.d/bind9 for startup, while DA was assuming the systemd box would be in the /etc/systemd/system/named.service. There were checks looking for bind9.services, but they failed, as the boot script ended up in /etc/init.d/bind9.
It was reported that the issue only showed itself when the box was restarted, as DA have have installed the missing /etc/systemd/system/named.service file.

The setup.sh has been updated to link /etc/init.d/named -> bind9, rather than needing to use the named_service_override option, for the cases where /etc/init.d/bind9 exists, and the bind9.service does not exist elsewhere.

It can be confirmed with "systemctl bind9 status" to see which boot script it being used.. where we'd be looking for the /etc/init.d/bind9 path.
If you do see this,the link can be created
Code:
ln -s bind9 /etc/init.d/bind9
but again, only if you do have this /etc/init.d/bind9 script present, and it's showning up as the script used in the systemctl bind9 status call. Once the link is created, the /etc/systemd/system/named.service could be removed.

If you are not having any named reload issues, there should be no need to make any changes.

John
 

tristan

Verified User
Joined
Feb 11, 2005
Messages
446
Location
The Netherlands
Thanks for this, must have been late over there. To check I think you meant to write:
Bash:
systemctl status bind9
and to create the symlink:
Bash:
ln -s bind9 /etc/init.d/named
 
Last edited:

tristan

Verified User
Joined
Feb 11, 2005
Messages
446
Location
The Netherlands
Weird it's changed on the version I just downloaded:
Bash:
1570,1574c1520
<                 if [ -s /etc/init.d/bind9 ]; then #I guess it's not systemd here.
<                     ln -s bind9 /etc/init.d/named
<                 else
<                     wget -O /etc/systemd/system/named.service ${SERVER}/custombuild/2.0/custombuild/configure/systemd/named.service.debian
<                 fi
---
>                 wget -O /etc/systemd/system/named.service ${SERVER}/custombuild/2.0/custombuild/configure/systemd/named.service.debian
 
Top