Actions
Bug #6526
closedLog rotation of reports and slapd is not correctly functionnal on redhat, as the server continues to write to the move file
Status:
Released
Priority:
N/A
Assignee:
Category:
System integration
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
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
Updated by Nicolas CHARLES over 9 years ago
just a remark, the path of the binary kill is not the same on all systems
Updated by Matthieu CERDA over 9 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
Updated by Benoît PECCATTE over 9 years ago
- Status changed from Pending technical review to In progress
Updated by Benoît PECCATTE over 9 years ago
- Target version changed from 2.10.14 to 3.1.0~beta1
Updated by Benoît PECCATTE over 9 years ago
- Target version changed from 3.1.0~beta1 to 2.10.14
Updated by Benoît PECCATTE over 9 years ago
Centos6 : /bin/kill and /var/run/syslod.pid
Centos7 : /bin/kill and /var/run/syslod.pid
Let's consider this OK
Updated by Benoît PECCATTE over 9 years ago
- Has duplicate Bug #4433: Log rotation problems due to bad post-rotate script added
Updated by Matthieu CERDA over 9 years ago
- Status changed from In progress to Pending release
Applied in changeset rudder-techniques|80b21d73f9d671424d25c26e50bd2502ca14e375.
Updated by Benoît PECCATTE over 9 years ago
Applied in changeset rudder-techniques|4856c1e1e7b71091e3f22233122ca947ad6058ec.
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from Pending release to Released
Actions