Upgrading BIND on Slackware (Thursday, July 10th, 2008) |
So I was working on upgrading BIND on a server running Slackware 10.2, when I ran into a nasty error:
As it turns out, the problem has absolutely nothing to do with the
“capability” module, which doesn't exist in the Linux 2.4
kernel that Slackware 10.2 uses. On this particular server, I chose
to ignore the assurances in the comments in /etc/rc.d/rc.bind that
modern versions of BIND are perfectly safe to run as root, so I have
a user called “named” and I modified the rc script to launch
BIND as The problem is, when you upgrade BIND, /var/run/named gets chown'd back to root.root, which causes a fatal error when BIND can't write its process ID to /var/run/named/named.pid. The confusing thing is, Slackware's rc.bind script assumes that any fatal error must be because the “capability” module (which doesn't even exist on this kernel) isn't loaded, so it prints a nasty warning, tries to load it with modprobe, and prints another error message when that fails too. Once I figured out what the problem was (the real reason BIND wouldn't
start was clearly stated in /var/log/syslog) it was easy to
fix: just |
Themes |
Random Quote |
“Sometimes it pays to stay in bed on Monday, rather than spending the
rest of the week debugging Monday's code.”
- Christopher Thompson |