]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Start all the targets in %post
authorBoris Ranto <branto@redhat.com>
Wed, 27 Apr 2016 16:00:08 +0000 (18:00 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Apr 2016 08:20:15 +0000 (10:20 +0200)
We need to have the sub-targets active for the ceph.target to be able
to propagate its calls to the services. If the sub-target is inactive,
the main target won't propagate the stop/restart calls.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 73f457986753b504fd088c1fa064608aa9d340c9)

ceph.spec.in

index 34379310beef5724947a6ab91ed7404ed3ef7069..9b3520990d8658d371ad686a422220e68f53534c 100644 (file)
@@ -912,6 +912,7 @@ fi
 %if 0%{?fedora} || 0%{?rhel}
 %systemd_post ceph.target
 %endif
+/usr/bin/systemctl start ceph.target >/dev/null 2>&1 || :
 
 %preun base
 %if 0%{?suse_version}
@@ -1043,6 +1044,7 @@ fi
 %if 0%{?fedora} || 0%{?rhel}
 %systemd_post ceph-mds@\*.service ceph-mds.target
 %endif
+/usr/bin/systemctl start ceph-mds.target >/dev/null 2>&1 || :
 
 %preun mds
 %if 0%{?suse_version}
@@ -1097,6 +1099,7 @@ fi
 %if 0%{?fedora} || 0%{?rhel}
 %systemd_post ceph-create-keys@\*.service ceph-mon@\*.service ceph-mon.target
 %endif
+/usr/bin/systemctl start ceph-mon.target >/dev/null 2>&1 || :
 
 %preun mon
 %if 0%{?suse_version}
@@ -1188,6 +1191,7 @@ fi
 %if 0%{?fedora} || 0%{?rhel}
 %systemd_post ceph-radosgw@\*.service ceph-radosgw.target
 %endif
+/usr/bin/systemctl start ceph-radosgw.target >/dev/null 2>&1 || :
 
 %preun radosgw
 %if 0%{?suse_version}
@@ -1253,6 +1257,7 @@ fi
 %if 0%{?fedora} || 0%{?rhel}
 %systemd_post ceph-disk@\*.service ceph-osd@\*.service ceph-osd.target
 %endif
+/usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || :
 
 %preun osd
 %if 0%{?suse_version}