Bug 489986
Summary: | default logfile in named.conf breaks with logrotate settings | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Eddie Lania <eddie> |
Component: | bind | Assignee: | Adam Tkac <atkac> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 10 | CC: | atkac, ovasik, pwouters |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 9.5.1-2.P2.fc10 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-03-25 16:02:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eddie Lania
2009-03-12 19:15:28 UTC
In /etc/logrotate.d/named: /var/log/named.log { missingok create 0644 named named postrotate /sbin/service named reload 2> /dev/null > /dev/null || true endscript } If I change this to: /var/named/chroot/var/log/named.log { missingok create 0644 named named postrotate /sbin/service named reload 2> /dev/null > /dev/null || true endscript } Is that ok? I adapted the channels logging so that default is logged in /var/named/chroot/var/log/named.log (In reply to comment #1) > If I change this to: > > /var/named/chroot/var/log/named.log { > missingok > create 0644 named named > postrotate > /sbin/service named reload 2> /dev/null > /dev/null || true > endscript > } > > Is that ok? It's not good idea. It will break configurations which don't use chroot. I changed default logrotate destination to /var/named/data/named.run. If you install bind-chroot then you have to manually change logrotate settings. There is no way how automatically redirect /etc/logrotate.d/named to /var/named/chroot/var/named/data/named.run. bind-9.5.1-2.P2.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/bind-9.5.1-2.P2.fc10 bind-9.5.1-2.P2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |