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
%postun
/sbin/ldconfig
-%if %{defined suse_version}
-%insserv_cleanup
-%endif
#################################################################################
# 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
/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
/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