Skip to content

Commit ae84318

Browse files
andriymoroz-mlnxlguohan
authored andcommitted
[Mellanox] Update hw-management service config (#1914)
Signed-off-by: Andriy Moroz <[email protected]>
1 parent 36e9ad5 commit ae84318

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/mellanox/hw-management/Add-systemd-service-config.patch

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ new file mode 100644
2929
index 0000000..d18916d
3030
--- /dev/null
3131
+++ b/debian/hw-management.service
32-
@@ -0,0 +1,10 @@
32+
@@ -0,0 +1,11 @@
3333
+[Unit]
3434
+Description=Mellanox Hardware Management
3535
+
3636
+[Service]
3737
+Type=oneshot
3838
+EnvironmentFile=/host/machine.conf
3939
+ExecStart=/bin/bash -c "/usr/share/sonic/device/$onie_platform/hw-management start"
40+
+ExecStop=/bin/bash -c "/usr/share/sonic/device/$onie_platform/hw-management stop"
4041
+
4142
+[Install]
4243
+WantedBy=multi-user.target

0 commit comments

Comments
 (0)