]> git.ipfire.org Git - thirdparty/lxc.git/commit
change lxc-autostart shutdown to behave like lxc-stop
authorDwight Engen <dwight.engen@oracle.com>
Tue, 31 Dec 2013 19:21:49 +0000 (14:21 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 2 Jan 2014 17:01:19 +0000 (11:01 -0600)
commita771fe18d28890cfc545995fb818aa7472744fde
tree9c1415a524121248c25e666d6ff2eab01701bf9c
parent99c2fb07d74c20d0eec38c05c4ac64e5782d8e7d
change lxc-autostart shutdown to behave like lxc-stop

It is desirable to have a mode where a soft shutdown is requested,
but then do a hard shutdown if after some time period the container
has not shut down. This the default behaviour of lxc-stop, but is
not currently possible with lxc-autostart. This change makes this
the default behaviour when shutdown is specified to lxc-autostart.
This will be very useful for init scripts.

An indefinte wait for soft shutdown (though I'm not sure how that
would be useful) is still possible by passing a timeout of 0.

Change default timeout value to 60 seconds to match lxc-stop

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
doc/lxc-autostart.sgml.in
src/lxc/lxc_autostart.c