Setups tried:
Stock OpenBSD 3.5 + latest Bind9 compiled from source
OpenBSD 3.6 + stock Bind9 (9.2.3)
Bind pid file in /var/run/named.pid
Problems:
Webmin refuses to detect when Bind is running both in
the Bind section of webmin and in the System and
Server Status.
Webmin has been told where the pid file is correctly.
Oddities:
On one occassion, the pid in /var/run/named.pid did not
match the actual pid of named. After a restart this was
resolved.
Let me know if you need any more info.
Logged In: YES
user_id=129364
Make sure the PID file is correct in /etc/named.conf , in
the options section.
Also, if you are not running BIND in a chroot directory,
make sure that the 'Chroot directory to run BIND under'
option is not set on the Module Config page.
Logged In: NO
Firstly thanks for the reply although the issue is still
present.
Bind is chrooted to /var/named
Webmin is told that Bind is chrooted to /var/named
/var/named/etc/named.conf did not have any directives about
the pid so I have added it. No difference.
In webmin, I have tried setting the pid option to both
default and explicitly telling it where the pid file is
Is the path to the pid file chrooted aswell as the path to
named.conf? It is specified as /var/run/named.pid and that
is where bind is putting its pid. Maybe webmin is looking in
/var/named/var/run/named.pid?
Probably not but that's about all I can think of.
Logged In: YES
user_id=129364
The PID file is relative to the chroot, both on the Module
Config page and in named.conf .. so you should enter
/var/run/named.pid .
This of course assumes that BIND is writing to that file,
which will only be possible if it has the right permissions.
Logged In: YES
user_id=1125010
My earlier guess was infact right.
The webmin module is told to use /var/run/named.pid
Webmin prepends that with the chroot to get:
/var/named/var/run/named.pid
Bind is told to use /var/run/named.pid
Bind does not prepend that with the chroot.
The net result is Bind writes to /var/run/named.pid and
Webmin reads from /var/named/var/run/named.pid
I have set /var/named/var/run/named.pid as a symlink to
/var/run/named.pid and hey presto, Webmin can now tell that
named is running.
Whether this is an OpenBSD specific issue or not I do not know.
Logged In: YES
user_id=129364
That's odd, usually the PID file path is relative to the
chroot ..
Well, it looks like this is solved then ..