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

Andrey Borzenkov arvidjaar at gmail.com
Sat Dec 4 00:41:26 PST 2010


If user starts array manually (mdadm -A -s as example) from within
user session and array needs mdmon, mdmon becomes part of user session
control group:

├ user
│ └ root
│   └ 1
│     ├ 1916 login -- root
│     ├ 1930 -bash
│     ├ 1964 gpg-agent --keep-display --daemon --write-env-file /root/.gnup...
│     └ 2062 mdmon md127


It is then killed by systemd during shutdown as part of user session.
It results in dirty array on next boot.

Is there any magic that allows daemon to be exempted from killing?

TIA

-andrey


More information about the systemd-devel mailing list