bugfix on rasdaemon.service

This commit is contained in:
renxichen 2023-11-29 16:07:07 +08:00
parent 9ac493a3be
commit 8dba77d01e

View File

@ -1,6 +1,6 @@
Name: rasdaemon Name: rasdaemon
Version: 0.6.7 Version: 0.6.7
Release: 13 Release: 14
License: GPLv2 License: GPLv2
Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events
URL: https://github.com/mchehab/rasdaemon.git URL: https://github.com/mchehab/rasdaemon.git
@ -96,8 +96,21 @@ rm INSTALL %{buildroot}/usr/include/*.h
%post %post
/usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || : /usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || :
if [ $1 -eq 2 ] ; then
/usr/bin/systemctl try-restart rasdaemon.service >/dev/null 2>&1 || :
fi
%preun
/usr/bin/systemctl disable rasdaemon.service >/dev/null 2>&1 || :
%changelog %changelog
* Wed Nov 29 2023 renhongxun <renhongxun@h-partners.com> - 0.6.7-14
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:clear the link to rasdaemon.service when uninstalling rasdaemon
and ensure rasdaemon restart once be upgraded
* Tue Jun 20 2023 zhangnan <zhangnan134@huawei.com> - 0.6.7-13 * Tue Jun 20 2023 zhangnan <zhangnan134@huawei.com> - 0.6.7-13
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA