From: Boris Ranto Date: Wed, 27 Apr 2016 16:00:08 +0000 (+0200) Subject: rpm: Start all the targets in %post X-Git-Tag: ses3-milestone5~38^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c729bdd4bcb974081899c65934d3fdb9e0e96316;p=ceph.git rpm: Start all the targets in %post 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 (cherry picked from commit 73f457986753b504fd088c1fa064608aa9d340c9) --- diff --git a/ceph.spec.in b/ceph.spec.in index 34379310bee..9b3520990d8 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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}