From ffcb14719935e0c85d4536abb182482bc51bb1fb Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Thu, 27 Aug 2015 10:45:46 +0200 Subject: [PATCH] ceph.spec.in: finish dropping obsolete sysvinit code (bnc#943067) Signed-off-by: Nathan Cutler (cherry picked from commit 9c820386ec1491038129239db7456ab914575978) Conflicts: ceph.spec.in --- ceph.spec.in | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index e58e082e0629c..307395fee519c 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -687,9 +687,6 @@ rm -rf $RPM_BUILD_ROOT fi fi %else - %if 0%{?suse_version} - %stop_on_removal ceph - %endif %if 0%{?rhel} || 0%{?fedora} if [ $1 = 0 ] ; then /sbin/service ceph stop >/dev/null 2>&1 @@ -700,9 +697,6 @@ rm -rf $RPM_BUILD_ROOT %postun /sbin/ldconfig -%if %{defined suse_version} -%insserv_cleanup -%endif ################################################################################# @@ -904,10 +898,6 @@ fi # service_add_post; the rest is all sysvinit --> systemd migration which # isn't applicable in this context (see above comment). /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : -%else - %if 0%{?suse_version} - %fillup_and_insserv -f -y ceph-radosgw - %endif %endif %preun radosgw @@ -919,10 +909,6 @@ fi /usr/bin/systemctl stop $SERVICE > /dev/null 2>&1 || : done fi -%else - %if 0%{?suse_version} - %stop_on_removal ceph-radosgw - %endif %endif %postun radosgw @@ -935,11 +921,6 @@ fi /usr/bin/systemctl try-restart $SERVICE > /dev/null 2>&1 || : done fi -%else - %if 0%{?suse_version} - %restart_on_update ceph-radosgw - %insserv_cleanup - %endif %endif # Package removal cleanup if [ "$1" = "0" ] ; then -- 2.39.5