Skip to content

Commit

Permalink
ceph.spec.in: drop sysvinit-specific macros that run only on openSUSE…
Browse files Browse the repository at this point in the history
…/SLE

All sysvinit-based versions of openSUSE/SLE are EOL as far as upstream Ceph is
concerned.

Signed-off-by: Nathan Cutler <[email protected]>
  • Loading branch information
smithfarm committed Aug 25, 2015
1 parent b2028b7 commit d0386d2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,6 @@ mkdir -p %{_localstatedir}/run/ceph/

%postun
/sbin/ldconfig
%if %{defined suse_version}
%insserv_cleanup
%endif

#################################################################################
# files
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d0386d2

Please sign in to comment.