keystone logrotate configuration causing service disruption
Bug #1297705 reported by
Magesh GV
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystone (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
Logrotate is configured to rotate the keystone logs every 24 hours.
The problem is that restart keystone is added after logrotate. This causes a disruption in service.
/var/log/
daily
missingok
rotate 5
postrotate
restart keystone >/dev/null 2>&1 || true
endscript
compress
delaycompress
notifempty
}
Just removing the line "restart keystone >/dev/null 2>&1 || true" fixes this problem. Moreover, logging also happens to keystone.log itself rather than keystone.log.1 even when logrotate is triggered after deleting the restart line.
To post a comment you must log in.
May be copytruncate can be used instead of the restart keystone .