From c729bdd4bcb974081899c65934d3fdb9e0e96316 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Wed, 27 Apr 2016 18:00:08 +0200 Subject: [PATCH] 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) --- ceph.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 34379310beef..9b3520990d86 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} -- 2.47.3