commit | 47ddac1b96197b22b35b07f3e26b3e5ad26b4de2 | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | Sat Feb 25 15:41:31 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Mar 01 16:09:11 2017 +0000 |
tree | 60433e6ada2479f9e33d3a29ab20531d634627e2 | |
parent | acb9ab4b3c5a5c1901921ac811828cb4dc8350d3 [diff] [blame] |
Add StopWhenUnneeded to hwmon sd unit The net effect is that systemd will stop the unit when a udev remove event occurs. Change-Id: I89413770b01c236caef74ca8af21d3b05845db45 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service b/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service index fcfada6..a59349d 100644 --- a/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service +++ b/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service
@@ -1,6 +1,7 @@ [Unit] Description=Phosphor Hwmon Poller ConditionFileNotEmpty=/etc/default/obmc/hwmon/%I.conf +StopWhenUnneeded=true [Service] Restart=always