Fix issue: error message from system-health daemon is observed during system starting (#10843)
- Why I did it Error message: "ERR healthd: Failed to read from file /var/run/hw-management/led/led_status_capability" is observed during system starting The system-health daemon will wait for 5 minutes before it starts to run. During this time, the only thing it does is to set the LED even before it starts. However, the corresponding sysfs has not been ready at the time it is being read, which causes the error message. - How I did it Defer system-health daemon until hw-management service starts - How to verify it Run regression test Signed-off-by: Stephen Sun <stephens@nvidia.com>
This commit is contained in:
parent
f58fec5d95
commit
2aa1c2f437
@ -0,0 +1,27 @@
|
|||||||
|
From 75725ff405c65a6aba0b936bc2bee6f04aaaed74 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stephen Sun <stephens@nvidia.com>
|
||||||
|
Date: Thu, 12 May 2022 08:41:00 +0800
|
||||||
|
Subject: [PATCH] Make SONiC system-health service service start after hw-mgmt
|
||||||
|
service
|
||||||
|
|
||||||
|
Signed-off-by: Stephen Sun <stephens@nvidia.com>
|
||||||
|
---
|
||||||
|
debian/hw-management.hw-management.service | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/debian/hw-management.hw-management.service b/debian/hw-management.hw-management.service
|
||||||
|
index 1c25ffb..9d10a32 100755
|
||||||
|
--- a/debian/hw-management.hw-management.service
|
||||||
|
+++ b/debian/hw-management.hw-management.service
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Chassis HW management service of Mellanox systems
|
||||||
|
Documentation=man:hw-management.service(8)
|
||||||
|
-Before=determine-reboot-cause.service
|
||||||
|
+Before=determine-reboot-cause.service system-health.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
--
|
||||||
|
1.9.1
|
||||||
|
|
Reference in New Issue
Block a user