Bug 457894 - logrotate definition for bacula logs is incorrect
Summary: logrotate definition for bacula logs is incorrect
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: bacula
Version: 8
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-05 09:23 UTC by Christian Nolte
Modified: 2008-09-16 23:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-16 23:22:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Christian Nolte 2008-08-05 09:23:38 UTC
/etc/logrotate.d/bacula does not work correctly if one uses the default configuration, because in bacula-dir.conf:

append = "/var/log/bacula.log" = all, !skipped

and in /etc/logrotate.d/bacula:

# Bacula logrotate script

/var/log/bacula/*.log {
    monthly
    rotate 4
    notifempty
    missingok
}

the logfile paths do not match. Furthermore the warning in bacula-dir in the Messages resource:

#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#
  append = "/var/spool/bacula/log" = all, !skipped

would be obsolete, if logrotate also would rotate the /var/spool/bacula/log on a monthly basis.

The logrotate definition should be changed to:

/var/log/bacula/*.log /var/spool/bacula/log {
    monthly
    rotate 4
    notifempty
    missingok
}

Comment 1 Gwyn Ciesla 2008-08-29 17:27:11 UTC
Fixed in CVS for devel, 9 and 8 (no spec changes yet).  Andreas, should I push a build, or are you close to a fix for BZ 458432?

Comment 2 Fedora Update System 2008-09-10 16:13:58 UTC
bacula-2.2.8-3.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/bacula-2.2.8-3.fc9

Comment 3 Fedora Update System 2008-09-11 17:02:03 UTC
bacula-2.2.8-3.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update bacula'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7857

Comment 4 Fedora Update System 2008-09-16 23:22:14 UTC
bacula-2.2.8-3.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.