[Mellanox] Update hw-management service config (#1914)

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
This commit is contained in:
Andriy Moroz 2018-08-11 01:37:16 +03:00 committed by lguohan
parent 36e9ad510d
commit ae843186a5

View File

@ -29,7 +29,7 @@ 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
+
@ -37,6 +37,7 @@ index 0000000..d18916d
+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