[systemd-devel] systemd kills mdmon if it was started manually by user

Michal Soltys soltys at ziu.info
Tue Nov 8 12:32:07 PST 2011


On 11-11-08 17:46, Michal Soltys wrote:
> Then even existing intiramfs image could (probably) be mdmon-agnostic.

Actually:

chroot /run/initramfs mdmon --takeover --all

worked just fine (after preparing new root - so after all mount --binds, 
and before pivot_root(8)).

So in context of systemd instead of sysv scripts - a fork / chroot / 
exec mdmon / wait - instead of killing it would do the thing, followed 
by pivot_to_new_root().

Actually anything that could benefit from "immortality" in one or the 
other way (perhaps udevd, so e.g. lvm doesn't need --noudevsync ? - when 
taken over inside dracut's shutdown or anything similar after going back 
to initramfs) that can be pre-chrooted into /run/initramfs and exec'ed, 
should work just fine. For the record, udevd worked properly with pivot 
survival.



More information about the systemd-devel mailing list