!106 bugfix on rasdaemon.service

From: @renxichen 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
This commit is contained in:
openeuler-ci-bot 2023-12-04 01:24:48 +00:00 committed by Gitee
commit 532ea17bf3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: rasdaemon
Version: 0.6.7
Release: 14
Release: 15
License: GPLv2
Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events
URL: https://github.com/mchehab/rasdaemon.git
@ -97,8 +97,21 @@ rm INSTALL %{buildroot}/usr/include/*.h
%post
/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
* Wed Nov 29 2023 renhongxun <renhongxun@h-partners.com> - 0.6.7-15
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:clear the link to rasdaemon.service when uninstalling rasdaemon
and ensure rasdaemon restart once be upgraded
* Wed Nov 1 2023 Xia Bing <xiabing12@h-partners.com> - 0.6.7-14
- Type:bugfix
- ID:NA