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

2015-01-28 Thread Lennart Poettering
On Thu, 15.01.15 09:39, Colin Guthrie (gm...@colin.guthr.ie) wrote: 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 + Colin Guthrie co...@mageia.org пишет: Anyway, assuming the process is in the

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

2015-01-15 Thread Colin Guthrie
Steve Dickson wrote on 15/01/15 00:50: Hello, On 01/12/2015 04:43 PM, Colin Guthrie wrote: But FWIW, your check for whether systemctl is installed via calling systemctl --help is IMO not very neat. If you're using bash here anyway, you might as well just do a: if [ -d

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

2015-01-15 Thread Colin Guthrie
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 + Colin Guthrie co...@mageia.org пишет: Anyway, assuming the process is in the .mount unit cgroup, should systemd detect the umount and kill the

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

2015-01-15 Thread Harald Hoyer
On 15.01.2015 10:28, Colin Guthrie wrote: Although if the script is in bash I'd use if [ -d ... rather than if test -d ... as (and bash experts (Harald?) can correct me here if I'm wrong) I believe [ is a bash built in (even if it is a binary in /usr/bin/), whereas it would have to fork out

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

2015-01-15 Thread Simon McVittie
On 15/01/15 09:28, Colin Guthrie wrote: Although if the script is in bash I'd use if [ -d ... rather than if test -d ... as (and bash experts (Harald?) can correct me here if I'm wrong) I believe [ is a bash built in (even if it is a binary in /usr/bin/), whereas it would have to fork out to

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

2015-01-14 Thread Steve Dickson
Hello, On 01/12/2015 04:43 PM, Colin Guthrie wrote: But FWIW, your check for whether systemctl is installed via calling systemctl --help is IMO not very neat. If you're using bash here anyway, you might as well just do a: if [ -d /sys/fs/cgroup/systemd ]; then type check or if you

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

2015-01-12 Thread Colin Guthrie
Hi, Looking into a thoroughly broken nfs-utils package here I noticed a quirk in systemctl status and in umount behaviour. In latest nfs-utils there is a helper binary shipped upstream called /usr/sbin/start-statd (I'll send a separate mail talking about this infrastructure with subject:

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

2015-01-12 Thread Steve Dickson
Hello On 01/12/2015 05:34 AM, Colin Guthrie wrote: Hi, Looking into a thoroughly broken nfs-utils package here I noticed a quirk in systemctl status and in umount behaviour. In latest nfs-utils there is a helper binary shipped upstream called /usr/sbin/start-statd (I'll send a separate

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

2015-01-12 Thread Michael Biebl
2015-01-12 22:43 GMT+01:00 Colin Guthrie gm...@colin.guthr.ie: But FWIW, your check for whether systemctl is installed via calling systemctl --help is IMO not very neat. If you're using bash here anyway, you might as well just do a: if [ -d /sys/fs/cgroup/systemd ]; then type check or if

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

2015-01-12 Thread Andrei Borzenkov
В Mon, 12 Jan 2015 10:34:07 + Colin Guthrie co...@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