From 1e8242730c1078f1f8fd5c50c64f804813bb75c6 Mon Sep 17 00:00:00 2001 From: renxichen Date: Fri, 1 Dec 2023 17:31:28 +0800 Subject: [PATCH] fix inconsistent service status after upgrading --- rasdaemon.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rasdaemon.spec b/rasdaemon.spec index cd51367..167a435 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.7 -Release: 9 +Release: 10 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 @@ -87,13 +87,19 @@ 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 restart rasdaemon.service >/dev/null 2>&1 || : + /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.7-10 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix inconsistent service status after upgrading + * Tue Nov 28 2023 renhongxun - 0.6.7-9 - Type:bugfix - ID:NA -- Gitee