]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: finish dropping obsolete sysvinit code (bnc#943067)
authorNathan Cutler <ncutler@suse.com>
Thu, 27 Aug 2015 08:45:46 +0000 (10:45 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2015 10:24:19 +0000 (11:24 +0100)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 9c820386ec1491038129239db7456ab914575978)

Conflicts:
ceph.spec.in

ceph.spec.in

index e58e082e0629c13ff7c18bcd7f8c47e71db5a95d..307395fee519c3970e4c9b382e8ae46818eed7ef 100644 (file)
@@ -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