Bug 292761 - error from cobbler logrotate
error from cobbler logrotate
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: cobbler (Show other bugs)
7
All Linux
medium Severity low
: ---
: ---
Assigned To: Michael DeHaan
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-17 03:12 EDT by Joe Orton
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-09-17 10:34:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Joe Orton 2007-09-17 03:12:01 EDT
Description of problem:
The cobbler logrotate config file needs the "missingok" keyword to suppress an
error from logrotate if no log files are present.

The keywords:

   rotate 4
   weekly

are also redundant since they are present in the system-default logrotate.conf,
so should be omitted in per-service files.  I suggest having:

/var/log/cobbler/cobblerd.log {
   missingok
   notifempty
   postrotate
      if [ -f /var/lock/subsys/cobblerd ]; then
         /etc/init.d/cobblerd restart
      fi
   endscript
}
Comment 1 Michael DeHaan 2007-09-17 10:34:59 EDT
Being explicit doesn't hurt anything, though I've added the missingok and
notifempty for the next release.

Thanks!


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