]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: drop sysvinit-specific macros that run only on openSUSE/SLE 5661/head
authorNathan Cutler <ncutler@suse.com>
Tue, 25 Aug 2015 11:49:47 +0000 (13:49 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 25 Aug 2015 11:49:47 +0000 (13:49 +0200)
All sysvinit-based versions of openSUSE/SLE are EOL as far as upstream Ceph is
concerned.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index 9d85f76008bbee421b8cf74f0f01c1acd4266b8b..c6096afba4b2ea337a74ef6aba91cfc5ecd3fc04 100644 (file)
@@ -705,9 +705,6 @@ mkdir -p %{_localstatedir}/run/ceph/
 
 %postun
 /sbin/ldconfig
-%if %{defined suse_version}
-%insserv_cleanup
-%endif
 
 #################################################################################
 # files
@@ -908,10 +905,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} || 0%{?opensuse}
-    %fillup_and_insserv -f -y ceph-radosgw
-  %endif
 %endif
 
 %preun radosgw
@@ -923,10 +916,6 @@ fi
       /usr/bin/systemctl stop $SERVICE > /dev/null 2>&1 || :
     done
   fi
-%else
-  %if 0%{?suse_version} || 0%{?opensuse}
-    %stop_on_removal ceph-radosgw
-  %endif
 %endif
 
 %postun radosgw
@@ -939,20 +928,12 @@ fi
       /usr/bin/systemctl try-restart $SERVICE > /dev/null 2>&1 || :
     done
   fi
-%else
-  %if 0%{?suse_version} || 0%{?opensuse}
-    %restart_on_update ceph-radosgw
-  %endif
 %endif
 # Package removal cleanup
 if [ "$1" -eq "0" ] ; then
     rm -rf /var/log/radosgw
 fi
 
-%if 0%{?suse_version} || 0%{?opensuse}
-  %insserv_cleanup
-%endif
-
 #################################################################################
 %if %{with ocf}
 %files resource-agents