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-restart</refentrytitle>
38
<manvolnum>1</manvolnum>
39
<refmiscinfo>IBM</refmiscinfo>
43
<refname>lxc-restart</refname>
46
restart a container from a file (not implemented yet)
52
<command>lxc-restart <optional>-f
53
config_file</optional><optional>-s KEY=VAL</optional>
54
--statefile=<replaceable>FILE</replaceable>
55
--statefd=<replaceable>FD</replaceable></command>
56
<arg choice=req><option>--name=<replaceable>NAME</replaceable></option></arg>
61
<title>Description</title>
64
<command>lxc-restart</command> is a command
65
to restart an application from the state read in the specified
66
<replaceable>FILE</replaceable>, in a container with the
67
identifier <replaceable>NAME</replaceable>.
68
If the option <option>--pause</option>
69
is specified, the application will be stopped after the
70
restart just before resuming execution. The command
71
<command>lxc-unfreeze</command> will be needed to resume its
77
<title>Restart Options</title>
81
<term><option>-S, --statefile=<replaceable>FILE</replaceable></option></term>
84
read the state of the container in this
85
<replaceable>FILE</replaceable>.
86
This option is exclusive with <option>--statefd</option> below.
92
<term><option>-d, --statefd=<replaceable>FD</replaceable></option></term>
95
read the state of the container in this
96
<replaceable>FD</replaceable> file descriptor.
97
This option is exclusive with above <option>--statefile</option>.
103
<term><option>-p</option></term>
106
Pause container processes after restart. The container will be
107
stopped until you resume it with the lxc-unfreeze command.
113
<term><option>-f, --rcfile=<replaceable>config_file</replaceable></option></term>
116
Specify the configuration file to configure the
117
virtualization and isolation functionalities for the
118
container. This parameter should be specified if it was
119
specified for the <command>lxc-execute</command>
120
or <command>lxc-start</command> commands or if the
121
container configuration has to be changed at restart. The
122
latter may fail if the needed resources are not available
123
for the restart. If the container was created and
124
configured with <command>lxc-create</command>, this option
125
is not needed, the configuration will be automatically
133
<option>-s <replaceable>KEY=VAL</replaceable></option>
137
Assign value <replaceable>VAL</replaceable> to configuration
138
variable <replaceable>KEY</replaceable>. This overrides any
139
assignment done in <replaceable>config_file</replaceable>.
151
<title>Examples</title>
153
To start a new container <literal>123</literal> computing decimals of pi
156
lxc-execute -n 123 -- pi1 -d 500000
157
lxc-execute --name=123 -- pi1 -d 500000
161
to checkpoint the same container in <emphasis>dump-death</emphasis>
165
lxc-checkpoint -n 123 -S /share/123/chkpt1 -k
166
lxc-checkpoint --name=123 --statefile=/share/123/chkpt1 -k
170
and to restart the same container with a different id
173
lxc-restart -n 200 -S /share/123/chkpt1
174
lxc-restart --name=200 --statefile=/share/123/chkpt1
181
<para>Actually, this command does not operate. Its description
182
helps to define a CLI api for future Checkpoint / Restart
189
<title>Author</title>
190
<para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
195
<!-- Keep this comment at the end of the file
200
sgml-minimize-attributes:nil
201
sgml-always-quote-attributes:t
204
sgml-parent-document:nil
205
sgml-default-dtd-file:nil
206
sgml-exposed-tags:nil
207
sgml-local-catalogs:nil
208
sgml-local-ecat-files:nil