core/device: start units specified in SYSTEMD_WANTS if it is not running
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Jun 2022 21:20:19 +0000 (06:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Jun 2022 21:34:06 +0000 (06:34 +0900)
commit033fe6506af5881db77c5ec1bb1f135bd6093406
tree74703be50fcb547a5f6e42bf08ebff421527fb2b
parentf0390fa03456ecb4d5f1482bd20a28ea98ae4d58
core/device: start units specified in SYSTEMD_WANTS if it is not running

Otherwise, e.g.
---
KERNEL=="foo", ACTION!="remove", ENV{SYSTEMD_WANTS}+="test.service"
---
then the service will not triggered on CHANGE uevents for the device even
if the service is already stopped.
src/core/device.c