[systemd-devel] [PATCH] units: use KillMode=process for systemd-nspawn at .service
Jonathan Liu
net147 at gmail.com
Wed May 28 00:42:31 PDT 2014
On 28 May 2014 14:06, David Timothy Strauss <david at davidstrauss.net> wrote:
> On Tue, May 27, 2014 at 10:55 PM, Jonathan Liu <net147 at gmail.com> wrote:
>> I suspect one downside is that if the container takes longer than the
>> timeout to shutdown then it will go on a SIGKILL-ing spree... which
>> could be a problem if a container process was in the middle of saving
>> to disk while shutting down.
>
> Is it reasonable to have no timeout, though? The weight (in terms of
> state and shutdown time) of what runs in most containers isn't more
> substantial than what runs in most services. It's not hard to override
> the instance if it's necessary to have a longer timeout or no timeout.
There is still a timeout with KillMode=process.
Killing systemd-nspawn kills the container processes as well.
I am just following the wiki at
http://fedoraproject.org/wiki/Features/SystemdLightweightContainers
Regards,
Jonathan
More information about the systemd-devel
mailing list