[systemd-devel] [PATCH] systemd: always start jobs for units in SYSTEMD_WANTS=

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Fri Dec 6 19:24:57 PST 2013


On Sat, Dec 07, 2013 at 12:35:26AM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> Before they would only be started when the unit transitioned from
> inactive to active state. Now, they will be started also on other
> udev events.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1026860:
> 
> we have an MD device holding an LVM PV. When it is detected, and the
> systemd .device unit is created, the device is not yet ready to be
> used. Later, after an udev change event, the device is ready and LVM
> udev rules add a SYSTEMD_WANTS=lvm2-pvscan at xxx.service tag. But since
> the device was active (in systemd's mind) before, the SYSTEMD_WANTS
> service was not run.
Hm, sorry, this one does not work properly. The problem I described above
*is* fixed, but the units in SYSTEMD_WANTS= are started too eagerly.
So maybe my original solution is OK.

Zbyszek


More information about the systemd-devel mailing list