Skip to content

Commit

Permalink
[mellanox]: Update hw-mgmt service with the stop action (#1929)
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
  • Loading branch information
Volodymyr Samotiy authored and lguohan committed Aug 14, 2018
1 parent 6918a22 commit c4e2f3e
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 "/etc/mlnx/mlnx-hw-management start"
+ExecStop=/bin/bash -c "/etc/mlnx/mlnx-hw-management stop"
+
+[Install]
+WantedBy=multi-user.target
Expand Down

0 comments on commit c4e2f3e

Please sign in to comment.