diff --git a/rasdaemon.spec b/rasdaemon.spec index 7a707a001be92a4014807ee34e79272c3fae7957..cd513679fc624f60a0669df957e1af075e905b14 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.7 -Release: 8 +Release: 9 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 restart rasdaemon.service >/dev/null 2>&1 || : +fi + +%preun +/usr/bin/systemctl disable rasdaemon.service >/dev/null 2>&1 || : %changelog +* Tue Nov 28 2023 renhongxun - 0.6.7-9 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:clear the link to rasdaemon.service when uninstalling rasdaemon + and ensure rasdaemon restart once be upgraded + * Mon Oct 30 2023 zhangnan - 0.6.7-8 - Type:bugfix - ID:NA