commit | e1ebd40907c473f044e73b4f6cb8d41d8c59068c | [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 | 1eb3229945988a2700a8dd55143b1ea283f60bc7 | |
parent | d7a66d4fc76939b88864aa946cc0f8dc12864a7a [diff] |
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/meta-phosphor/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service b/meta-phosphor/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service index fcfada6..a59349d 100644 --- a/meta-phosphor/common/recipes-phosphor/sensors/phosphor-hwmon/xyz.openbmc_project.Hwmon@.service +++ b/meta-phosphor/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