From 49c470f4c06923f41f25954e4aabb43d8fc95105 Mon Sep 17 00:00:00 2001 From: renxichen Date: Fri, 1 Dec 2023 17:19:54 +0800 Subject: [PATCH] bugfix on rasdaemon.service --- rasdaemon.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rasdaemon.spec b/rasdaemon.spec index a7dbdc9..8b11bae 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.8 -Release: 5 +Release: 6 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 @@ -86,8 +86,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 +* Fri Dec 01 2023 renhongxun - 0.6.8-6 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:clear the link to rasdaemon.service when uninstalling rasdaemon + and ensure rasdaemon restart once be upgraded + * Sat Jun 17 2023 yanglongkang - 0.6.8-5 - Type:bugfix - ID:NA -- Gitee