From a78812b6bc208daebdc6b99b2e7760bc406ddf4d Mon Sep 17 00:00:00 2001 From: Andriy Moroz Date: Mon, 20 May 2019 21:27:33 +0300 Subject: [PATCH] [Mellanox] Update platform driver service options (#2908) Signed-off-by: Andriy Moroz --- .../mellanox/hw-management/Add-systemd-service-config.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/mellanox/hw-management/Add-systemd-service-config.patch b/platform/mellanox/hw-management/Add-systemd-service-config.patch index bbaed885dc..8015e38b7a 100644 --- a/platform/mellanox/hw-management/Add-systemd-service-config.patch +++ b/platform/mellanox/hw-management/Add-systemd-service-config.patch @@ -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"