Skip to content

Commit

Permalink
[Mellanox] Update hw-management service config (#1914)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
  • Loading branch information
andriymoroz-mlnx authored and lguohan committed Oct 13, 2018
1 parent 5d0748d commit 4d12746
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ new file mode 100644
index 0000000..d18916d
--- /dev/null
+++ b/debian/hw-management.service
@@ -0,0 +1,10 @@
@@ -0,0 +1,11 @@
+[Unit]
+Description=Mellanox Hardware Management
+
+[Service]
+Type=oneshot
+EnvironmentFile=/host/machine.conf
+ExecStart=/bin/bash -c "/usr/share/sonic/device/$onie_platform/hw-management start"
+ExecStop=/bin/bash -c "/usr/share/sonic/device/$onie_platform/hw-management stop"
+
+[Install]
+WantedBy=multi-user.target
Expand Down

0 comments on commit 4d12746

Please sign in to comment.