[systemd-devel] systemctl status not showing still running processes in inactive .mount unit cgroups (NFS specifically)

Colin Guthrie gmane at colin.guthr.ie
Thu Jan 15 01:39:29 PST 2015


Ross Lagerwall wrote on 14/01/15 22:41:
> On Mon, Jan 12, 2015 at 09:04:35PM +0300, Andrei Borzenkov wrote:
>> В Mon, 12 Jan 2015 10:34:07 +0000
>> Colin Guthrie <colin at mageia.org> пишет:
>>
>>>
>>> Anyway, assuming the process is in the .mount unit cgroup, should
>>> systemd detect the umount and kill the processes accordingly, and if
>>
>> It does not do it currently. It only starts killing if (u)mount times
>> out. Otherwise if umount is successful it goes to stopped state
>> immediately. Although it probably should, even for the sake of user
>> space helpers.
>>
>>> not, should calling "systemctl status" on .mount units show processes
>>> even if it's in an inactive state?
>>>
>>
>> I believe something very similar (not only for mount units) was
>> reported recently, but I do not have reference handy. I mean, processes
>> belonging to stopped unit (e.g. with KillMode=none) are not displayed.
>>
> 
> This commit is probably needed:
> 
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=dab5bf859900c0abdbf78c584e4aed42a19768cd

That indeed looks like a likely candidate. I'll try breaking things
again and checking status output with this patch applied.

Thanks!

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the systemd-devel mailing list