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

Andrey Borzenkov arvidjaar at mail.ru
Mon Jan 24 19:58:13 PST 2011


On Tue, Jan 25, 2011 at 6:44 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Sat, 22.01.11 20:55, Andrey Borzenkov (arvidjaar at mail.ru) wrote:
>
>> >> mdmon does not belong to user. User is not even aware that it is
>> >> started. And it is likely not the last case. So systemd does need some
>> >> framework which can move such processes out of user session. It
>> >> probably needs some sd_daemon API to notify systemd that it is system
>> >> level task even if it was started as result of user interaction.
>> >
>> >  Well, it is started by user, so it belongs to user. And
>> > systemd has an API to start system-level task as a result of
>> > user interaction: it is called "systemctl start mdmon.service".
>> >
>>
>> mdmon is not a singleton - it is started for every array that needs it
>> (not each array needs it). Can you pass extra parameters that identify
>> object mdmon should monitor via systemctl?
>
> systemd supports instantiated services, for example to deal with the
> gettys (e.g. "getty at tty5.service"). It should be trivial to use the same
> for mdmon (e.g. "mdmon at md3.service").
>

That's right, but the names are not known in advance and can change
between reboots. This means such units have to be generated
dynamically, exist until reboot (ramfs?) and be removed when array is
destroyed. Not sure it is really manageable.

And which instance should generate them? mdadm?


More information about the systemd-devel mailing list