Bug 292761

Summary: error from cobbler logrotate
Product: [Fedora] Fedora Reporter: Joe Orton <jorton>
Component: cobblerAssignee: Michael DeHaan <mdehaan>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-17 14:34:59 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 Joe Orton 2007-09-17 07:12:01 UTC
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 14:34:59 UTC
Being explicit doesn't hurt anything, though I've added the missingok and
notifempty for the next release.

Thanks!