[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: named.service or bind9.service or both?



On 2023-01-16 13:36, Greg Wooledge wrote:
On Mon, Jan 16, 2023 at 10:42:35AM +0100, Jesper Dybdal wrote:
  28969163      4 -rw-r--r--   1 root     root          255 Jun  2 2016
/etc/systemd/system/bind9.service

I suspect that the bind9 service ought to be removed.  Is that correct?
It looks like you (or someone acting on your behalf) created a local
instance of this bind9.service file, over 6 years ago.
I now remember that I did that - at a time when I was completely new to Debian.  Probably because I followed the instructions at https://wiki.debian.org/Bind9#Debian_Jessie_and_later

   Perhaps you
had been instructed that if you wanted to make changes to a unit file,
you were supposed to copy the whole thing to /etc/systemd/system/
and then edit that copy.  (That is indeed ONE possible way to go about
it, but not the best way, usually.)
Indeed it is not.  It seems I didn't know that at the time.
In any case, yeah, I'd get rid of that.  Maybe move it to /root/ in case
you want to refer to it in the future, or whatever.  Afterward, do a
"systemctl daemon-reload".
I'll do that.  Should I then also remove the "Alias=bind9.service" line from named.service?

And thanks for your help!

--
Jesper Dybdal
https://www.dybdal.dk


Reply to: