]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirorr: does not start on reboot 17969/head
authorSébastien Han <seb@redhat.com>
Tue, 26 Sep 2017 12:05:37 +0000 (14:05 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 26 Sep 2017 12:05:37 +0000 (14:05 +0200)
The current systemd unit file misses 'PartOf=ceph-rbd-mirror.target',
which results in the unit not starting after reboot.
If you have ceph-rbd-mirror@rbd-mirror.ceph-rbd-mirror0, it won't start
after reboot even if enabled.
Adding 'PartOf=ceph-rbd-mirror.target' will enable
ceph-rbd-mirror.target when ceph-rbd-mirror@rbd-mirror.ceph-rbd-mirror0
gets enabled.

Signed-off-by: Sébastien Han <seb@redhat.com>
systemd/ceph-rbd-mirror@.service

index d38aec524e8d6811b91378a7aefc38b38dcc1132..17fd7381f888c222e1e9a2b581d375682450419d 100644 (file)
@@ -2,6 +2,7 @@
 Description=Ceph rbd mirror daemon
 After=network-online.target local-fs.target
 Wants=network-online.target local-fs.target
+PartOf=ceph-rbd-mirror.target
 
 [Service]
 LimitNOFILE=1048576