From d0386d23471016501218457fa20f7238d3bd86b0 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 25 Aug 2015 13:49:47 +0200 Subject: [PATCH] ceph.spec.in: drop sysvinit-specific macros that run only on openSUSE/SLE All sysvinit-based versions of openSUSE/SLE are EOL as far as upstream Ceph is concerned. Signed-off-by: Nathan Cutler --- ceph.spec.in | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 9d85f76008bb..c6096afba4b2 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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 -- 2.47.3