]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
logrotate: copy/paste daemon list from *-all-starter.conf 1393/head
authorLoic Dachary <loic@dachary.org>
Thu, 6 Mar 2014 23:07:26 +0000 (00:07 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 6 Mar 2014 23:47:58 +0000 (00:47 +0100)
commit7411c3c6a42bef5987bdd76b1812b01686303502
tree96b7b9eee5dc4c508531f34fa5d1875593f75431
parent7403b235444b7ff5f80e15e1997063a81270d730
logrotate: copy/paste daemon list from *-all-starter.conf

Each upstart/*-all-starter.conf use the same script to find the list of
daemons and their ids. Copy it over to the corresponding logrotate.conf
script instead of using a less reliable script based on initctl list
output.

If logrotate fails to run initctl reload on a daemon, it will keep
writing to the rotated log file, even after it is deleted and until it
fills the disk. By using the exact same shell snippet as the upstart
scripts used to start the daemon, all of them will be sent the HUP
signal and reopen the log file that was just rotated.

http://tracker.ceph.com/issues/7072 fixes #7072

Signed-off-by: Loic Dachary <loic@dachary.org>
src/logrotate.conf
src/rgw/logrotate.conf