3
lxc: linux Container library
5
(C) Copyright IBM Corp. 2007, 2008
8
Daniel Lezcano <dlezcano at fr.ibm.com>
10
This library is free software; you can redistribute it and/or
11
modify it under the terms of the GNU Lesser General Public
12
License as published by the Free Software Foundation; either
13
version 2.1 of the License, or (at your option) any later version.
15
This library is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
Lesser General Public License for more details.
20
You should have received a copy of the GNU Lesser General Public
21
License along with this library; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
28
<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
29
<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34
<docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37
<refentrytitle>lxc-checkpoint</refentrytitle>
38
<manvolnum>1</manvolnum>
39
<refmiscinfo>IBM</refmiscinfo>
43
<refname>lxc-checkpoint</refname>
46
checkpoint a running container (not implemented yet)
52
<command>lxc-checkpoint
53
--statefile=<replaceable>FILE</replaceable>
54
--statefd=<replaceable>FD</replaceable>
55
--name=<replaceable>NAME</replaceable> </command>
56
<arg><option>-k</option>|<option>-p</option></arg>
61
<title>Description</title>
64
<command>lxc-checkpoint</command> is a command
65
to checkpoint the specified container
66
<replaceable>NAME</replaceable> and dumps its state into the file
67
<replaceable>FILE</replaceable>. If the
68
option <option>--kill</option> is specified, the application
69
running in the container will terminate after the checkpoint
70
just before resuming its execution. If the
71
option <option>--pause</option> is specified, the application
72
will be stopped after the checkpoint just before resuming
73
execution. The command <command>lxc-unfreeze</command> will
80
<title>Checkpoint Options</title>
85
<term><option>-S, --statefile=<replaceable>FILE</replaceable></option></term>
88
write the state of the container in this
89
<replaceable>FILE</replaceable>.
90
This option is exclusive with <option>--statefd</option> below.
96
<term><option>-d, --statefd=<replaceable>FD</replaceable></option></term>
99
write the state of the container in this
100
<replaceable>FD</replaceable> file descriptor.
101
This option is exclusive with above <option>--statefile</option>.
107
<term><option>-k,--kill</option></term>
110
Kill container processes after checkpoint. the processes are sent
111
a <literal>SIGKILL</literal> signal.
114
This option is mutually exclusive with the following
115
<option>--pause</option> option.
121
<term><option>-p,--pause</option></term>
124
Pause container processes after checkpoint. The container
125
will be stopped until you resume it. This option is
126
mutually exclusive with previously mentionned
127
<option>--kill</option> option.
139
<title>Examples</title>
141
To start a new container <literal>123</literal> computing decimals of pi
144
lxc-execute -n 123 -- pi1 -d 500000
145
lxc-execute --name=123 -- pi1 -d 500000
149
to checkpoint the same container in <emphasis>dump-death</emphasis>
153
lxc-checkpoint -n 123 -S /share/123/chkpt1 -k
154
lxc-checkpoint --name=123 -S /share/123/chkpt1 -k
158
to checkpoint the same container and <emphasis>pause</emphasis> it
161
lxc-checkpoint -n 123 -S /share/123/chkpt1 -p
162
lxc-checkpoint --name=123 -S /share/123/chkpt1 -p
169
<para>Actually, this command does not operate. Its description
170
helps to define a CLI api for future Checkpoint / Restart
177
<title>Author</title>
178
<para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
183
<!-- Keep this comment at the end of the file
188
sgml-minimize-attributes:nil
189
sgml-always-quote-attributes:t
192
sgml-parent-document:nil
193
sgml-default-dtd-file:nil
194
sgml-exposed-tags:nil
195
sgml-local-catalogs:nil
196
sgml-local-ecat-files:nil