BIND 10 #1082: log file isn't created when running bind10 with -u
BIND 10 Development
do-not-reply at isc.org
Wed Jun 29 22:20:10 UTC 2011
#1082: log file isn't created when running bind10 with -u
--------------------------------+-----------------------------------------
Reporter: jinmei | Owner:
Type: defect | Status: new
Priority: major | Milestone: New Tasks
Component: logging | Keywords:
Sensitive: 0 | Defect Severity: N/A
Sub-Project: Core | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
--------------------------------+-----------------------------------------
If I started BIND10 with '-u bind' with logging configuration for
dumping logs to file:
{{{
Logging/loggers[0]/output_options[0]/destination "file" string
Logging/loggers[0]/output_options[0]/output
"/home/jinmei/opt/var/log/bind10.log" string
Logging/loggers[0]/output_options[0]/flush false boolean (default)
Logging/loggers[0]/output_options[0]/maxsize 100000 integer
Logging/loggers[0]/output_options[0]/maxver 5 integer
}}}
The file was not created and I saw this message from liblog4cplus:
{{{
log4cplus:ERROR Unable to open file: /home/jinmei/opt/var/log/bind10.log
}}}
(seeing this is bad IMO, but it's a separate issue. See #1081).
Even though the directory is writable for the user of "bind":
{{{
drwxrwxr-x 2 jinmei bind 512 Jun 29 15:01 /home/jinmei/opt/var/log
}}}
If I started BIND 10 without -u bind 10 and with root permission, it
created
the bind10.log file. If I then changed the owner of the file to "bind",
this file is updated with new logs.
These are very strange and inconvenient.
--
Ticket URL: <http://bind10.isc.org/ticket/1082>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list