Re: [systemd-devel] [PATCH] man: document kill behavior after the main process exits

2015-04-23 Thread Lennart Poettering
On Thu, 23.04.15 09:20, Daniel Drake (dr...@endlessm.com) wrote: -timeout, if the normal shutdown procedure left processes of -the service around. Takes a boolean value. Defaults to yes. +timeout, if the normal shutdown procedure didn't succeed in +shutting

Re: [systemd-devel] [PATCH] man: document kill behavior after the main process exits

2015-04-23 Thread Daniel Drake
On Thu, Apr 23, 2015 at 9:32 AM, Lennart Poettering lenn...@poettering.net wrote: +titleBeyond the main process/title + + paraThe varnameKillMode=/varname option primarily defines + behavior up until the point where the main process has gone away. + systemd expects that when

Re: [systemd-devel] [PATCH] man: document kill behavior after the main process exits

2015-04-23 Thread Lennart Poettering
On Thu, 23.04.15 09:43, Daniel Drake (dr...@endlessm.com) wrote: On Thu, Apr 23, 2015 at 9:32 AM, Lennart Poettering lenn...@poettering.net wrote: +titleBeyond the main process/title + + paraThe varnameKillMode=/varname option

[systemd-devel] [PATCH] man: document kill behavior after the main process exits

2015-04-23 Thread Daniel Drake
While looking at the exact behavior of how systemd stops services, I encountered some behavior that wasn't clear from reading the man page. Specifically, if the main process exits before its children, the child processes will actually receive a second SIGTERM. If that doesn't kill them, they will