[EMAIL PROTECTED] (Stefan van der Eijk) writes:
> Florin,
>
> Jun 21 21:12:53 taz named[2512]: using 1 CPU
> Jun 21 21:12:54 taz named[2520]: loading configuration from
> '/etc/named.conf'
> Jun 21 21:12:54 taz named[2520]: no IPv6 interfaces found
> Jun 21 21:12:54 taz named[2520]: listening on IPv4 interface lo,
> 127.0.0.1#53
> Jun 21 21:12:54 taz named[2520]: listening on IPv4 interface eth0,
> 213.46.10.149#53
> Jun 21 21:12:54 taz named[2520]: listening on IPv4 interface eth1,
> 192.168.1.254#53
> Jun 21 21:12:54 taz named[2520]: command channel listening on 127.0.0.1#953
> Jun 21 21:12:54 taz named[2520]: couldn't open pid file
> '/var/run/named.pid': Permission denied
>
> ^^^^^^^^^^^^^^^^
> Jun 21 21:12:54 taz named[2520]: exiting (due to early fatal error)
>
> Can this be changed into a file in /var/run/named/ (that directory has
> write permisions for the named user).
Hi there,
1. you should add a line in your /etc/named.conf file, ine the options
section:
pid-file "/var/run/named/named.pid";
2. the other solution would be to patch the global.h file from the sources
and change the default line /run/named.pid file into something else.
The problems is the something else part. Indeed, you'll have to specify
a directory option for bind, for example directory "/var/named/";
Otherwise, bind will assume that the the directory is ".", the
directory from which one started bind. In that case, bind will look
after a pid name file in /var/named/run/named.pid.
Maybe we could create a directory /var/named/run and put here the the pid
files, but this is not standard.
The first solution is the best one, I think.
any comments are welcomed.
--
Florin http://www.mandrakesoft.com