Can't create a log file
Mark Andrews
Mark_Andrews at isc.org
Tue Dec 20 00:28:21 UTC 2005
> I suppose this should be obvious, but...
>
> I've got Redhat Enterprise 4 running. In named.conf I've got the
> following:
>
> logging {
> channel tango_log{
> file "/var/log/named/tango.log" versions 3 size 250k;
> severity debug;
> print-time yes;
> print-severity yes;
> print-category yes;
> };
> category default{
> tango_log;
> };
> };
>
> When I start named I see this in /var/messages:
>
> Dec 19 16:30:30 zeus named: named startup succeeded
> Dec 19 16:30:30 zeus named[4720]: listening on IPv4 interface eth0,
> 192.168.1.19#53
> Dec 19 16:30:30 zeus named[4720]: command channel listening on
> 127.0.0.1#953
> Dec 19 16:30:30 zeus named[4720]: command channel listening on ::1#953
> Dec 19 16:30:30 zeus named[4720]: logging channel 'tango_log' file
> '/var/log/named/tango.log': file not found
> Dec 19 16:30:30 zeus named[4720]: isc_log_open
> '/var/log/named/tango.log' failed: file not found
>
> The file is there. I had to create the named directory in /var/log and
> touch tango.log to create the file. I then set the owner of the
> directory and file to named.
The directory /var/log/named has to exist and be writable by
named. You do not need to touch the log file.
> Thanks in advance for the help.
>
> -Paul
>
>
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list