]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerBoris Ranto <branto@redhat.com>
Wed, 27 Apr 2016 16:00:12 +0000 (18:00 +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>
ceph.spec.in

index fd2aa7f9fe723e50367e64bcfbb297cc4f18c20d..0cad870d57a5c10e94ff4421fa2d18353e76d42b 100644 (file)
@@ -898,6 +898,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}
@@ -1029,6 +1030,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}
@@ -1083,6 +1085,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}
@@ -1174,6 +1177,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}
@@ -1238,6 +1242,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}