[Mellanox] Update platform driver service options (#2908)

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
This commit is contained in:
Andriy Moroz 2019-05-20 21:27:33 +03:00 committed by lguohan
parent bce72c9228
commit a78812b6bc

View File

@ -29,12 +29,13 @@ new file mode 100644
index 0000000..d18916d
--- /dev/null
+++ b/debian/hw-management.service
@@ -0,0 +1,11 @@
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mellanox Hardware Management
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+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"