]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: explicitly trigger changing udev SYSTEMD_WANTS properties 9366/head
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 20:54:55 +0000 (22:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 21:59:29 +0000 (23:59 +0200)
commit88116909ec60724ddce47feb2cc40c52bdb81bdf
tree781ae1c925f8ef9da4d634bf9ab60401948cce42
parentb5c9144cb78cfe4ca8cd672a42e164f7fcbf4249
core: explicitly trigger changing udev SYSTEMD_WANTS properties

This compensates for the unsynchronized reload cycles of systemd and
udev: we manually trigger the deps listed in SYSTEMD_WANTS properties if
they change for device units that are already up. That way all deps
defined that way will be triggered at least once: the first time the
unit goes up by the usual dependency logic, and if it already is up by
the device.c specific logic.

Fixes: #9323
src/core/device.c
src/core/device.h