From: Boris Ranto Date: Wed, 27 Apr 2016 16:00:08 +0000 (+0200) Subject: rpm: Start all the targets in %post X-Git-Tag: v11.0.0~813^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=73f457986753b504fd088c1fa064608aa9d340c9;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 --- diff --git a/ceph.spec.in b/ceph.spec.in index fd2aa7f9fe72..0cad870d57a5 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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}