]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
logrotate.conf: Simplify log files reopening after log rotation 5808/head
authorBoris Ranto <branto@redhat.com>
Fri, 4 Sep 2015 08:08:35 +0000 (10:08 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 4 Sep 2015 08:08:43 +0000 (10:08 +0200)
commit58ea8bebf73a376908e6bd079a974a8596cfd889
tree18f46e99788ee0b8148be7e2b03d7bb0ced8f6af
parentf1931648b25e0b0ba30586ff0e8274177e2eff3a
logrotate.conf: Simplify log files reopening after log rotation

SIGHUP (1) signal makes ceph services reopen its log files so we do not
need to call any init scripts magic, here.

Additionally, the old approach caused problems with rhel-based systems
since it found the service command and tried to reload ceph.service
instead of ceph.target.

This also caused problems with SELinux as processes with context
logrotate_t are not allowed to issue systemctl reload on a process.

This patch is also in sync with other logrotate postrotate scripts which
do exactly the same thing (send SIGHUP to the daemon).

Signed-off-by: Boris Ranto <branto@redhat.com>
src/logrotate.conf
src/rgw/logrotate.conf