Project

General

Profile

Bug #6526

Log rotation of reports and slapd is not correctly functionnal on redhat, as the server continues to write to the move file

Added by Nicolas CHARLES almost 5 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

Rotation on redhat (and possibly Ubuntu) is not correctly working. The postrotate command is "service rsyslogd reload"
However, rsyslogd reload simply exit 3, without reloading anything, so it still write in all.log.1 rather than all.log

The correct solution seems to be

 /bin/kill -HUP `cat /var/run/syslogd.pid

(or the correct path of kill according to the systems)

see https://www.redhat.com/archives/rhelv6-list/2012-June/msg00068.html


Subtasks

Bug #6585: Wrong initial promise file modified breaking tests in tehcniquesReleasedBenoît PECCATTEActions
Bug #6586: Fix initial promises to have correct logrotate on 2.11ReleasedNicolas CHARLESActions
Bug #6676: rudder-agent is stuck, waiting for user input during log compression (on 2.10)ReleasedMatthieu CERDAActions

Related issues

Has duplicate Rudder - Bug #4433: Log rotation problems due to bad post-rotate scriptRejected2014-01-31Actions

Associated revisions

Revision 80b21d73 (diff)
Added by Matthieu CERDA almost 5 years ago

Fixes #6526: Do not rotate syslog using init.d on RHEL

Revision 4856c1e1
Added by Benoît PECCATTE almost 5 years ago

Merge pull request #659 from Kegeruneku/bug_6526/dev/6526_wrong_logrotate_syslog_rotate_command

Fixes #6526: Do not rotate syslog using init.d on RHEL

Revision 090257e3
Added by Nicolas CHARLES almost 5 years ago

Merging 2.10 into 2.11 - refs #6526

History

#1

Updated by Nicolas CHARLES almost 5 years ago

just a remark, the path of the binary kill is not the same on all systems

#2

Updated by Matthieu CERDA almost 5 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Matthieu CERDA to Benoît PECCATTE
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/659
#3

Updated by Benoît PECCATTE almost 5 years ago

  • Status changed from Pending technical review to In progress
#4

Updated by Benoît PECCATTE almost 5 years ago

  • Target version changed from 2.10.14 to 3.1.0~beta1
#5

Updated by Benoît PECCATTE almost 5 years ago

  • Target version changed from 3.1.0~beta1 to 2.10.14
#6

Updated by Benoît PECCATTE almost 5 years ago

Centos6 : /bin/kill and /var/run/syslod.pid
Centos7 : /bin/kill and /var/run/syslod.pid

Let's consider this OK

#7

Updated by Benoît PECCATTE almost 5 years ago

  • Has duplicate Bug #4433: Log rotation problems due to bad post-rotate script added
#8

Updated by Matthieu CERDA almost 5 years ago

  • Status changed from In progress to Pending release
#10

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.14, 2.11.11 and 3.0.5 which were released today.

Also available in: Atom PDF