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