]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
logrotate.conf: fixes for systemd 5086/head
authorNathan Cutler <ncutler@suse.com>
Fri, 26 Jun 2015 11:13:33 +0000 (13:13 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 26 Jun 2015 17:43:44 +0000 (19:43 +0200)
commit05424a803b817068f0a06b0ac6709aa8a8a3a717
tree80831ceb84f9952873d8a5c54419d13f054d993f
parent891f3e0e0874102bf9bbd1ad5aa6486a8f766050
logrotate.conf: fixes for systemd

Before this patch, the command 'logrotate -f /etc/logrotate.d/ceph'
was generating an error "Failed to reload ceph.target: Job type reload is not
applicable for unit ceph.target".

Before we issue systemctl reload, check that there is at least
one active ceph-* service. (The hyphen is significant.)

Since we use grep, make the grep package a dependency.

http://tracker.ceph.com/issues/12173 Fixes: #12173

Signed-off-by: Tim Serong <tserong@suse.com>
Signed-off-by: Lars Marowsky-Bree <lmb@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in
debian/control
src/logrotate.conf
systemd/ceph-mds@.service
systemd/ceph-mon@.service
systemd/ceph-osd@.service.in