[systemd-devel] [PATCH] systemd: always start jobs for units in SYSTEMD_WANTS=
Lennart Poettering
lennart at poettering.net
Sun Dec 8 15:33:41 PST 2013
On Sat, 07.12.13 00:35, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) 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.
Hmm? We introduce the SYSTEMD_READY property for LVM. A device is only
considered active by systemd if that property is either unset or set to
1. If it is set to 0 however, the device is considered inactve.
I have the suspicion that there's exactly zero to fix in systemd here,
it's just that something between LVM and MD is not setting that property
properly?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list