[mellanox]: Update hw-mgmt service with the stop action (#1929)

Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
This commit is contained in:
Volodymyr Samotiy 2018-08-15 02:05:07 +03:00 committed by lguohan
parent 6918a22959
commit c4e2f3e630

View File

@ -29,7 +29,7 @@ new file mode 100644
index 0000000..d18916d index 0000000..d18916d
--- /dev/null --- /dev/null
+++ b/debian/hw-management.service +++ b/debian/hw-management.service
@@ -0,0 +1,10 @@ @@ -0,0 +1,11 @@
+[Unit] +[Unit]
+Description=Mellanox Hardware Management +Description=Mellanox Hardware Management
+ +
@ -37,6 +37,7 @@ index 0000000..d18916d
+Type=oneshot +Type=oneshot
+EnvironmentFile=/host/machine.conf +EnvironmentFile=/host/machine.conf
+ExecStart=/bin/bash -c "/etc/mlnx/mlnx-hw-management start" +ExecStart=/bin/bash -c "/etc/mlnx/mlnx-hw-management start"
+ExecStop=/bin/bash -c "/etc/mlnx/mlnx-hw-management stop"
+ +
+[Install] +[Install]
+WantedBy=multi-user.target +WantedBy=multi-user.target