lxc_start.c revision 304dc8b3ff5d14229942d314bb3bfc44cede68de
493N/A * lxc: linux Container library 493N/A * (C) Copyright IBM Corp. 2007, 2008 493N/A * Daniel Lezcano <daniel.lezcano at free.fr> 493N/A * This library is free software; you can redistribute it and/or 493N/A * modify it under the terms of the GNU Lesser General Public 493N/A * License as published by the Free Software Foundation; either 493N/A * version 2.1 of the License, or (at your option) any later version. 493N/A * This library is distributed in the hope that it will be useful, 493N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 493N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 493N/A * Lesser General Public License for more details. 493N/A * You should have received a copy of the GNU Lesser General Public 493N/A * License along with this library; if not, write to the Free Software 493N/A * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 493N/A--name=NAME -- COMMAND\n\ 493N/Alxc-start start COMMAND in specified container NAME\n\ 493N/A -n, --name=NAME NAME for name of the container\n\ 493N/A -d, --daemon daemonize the container\n\ 493N/A -p, --pidfile=FILE Create a file with the process id\n\ 493N/A -f, --rcfile=FILE Load configuration file FILE\n\ 493N/A -c, --console=FILE Use specified FILE for the container console\n\ 493N/A -L, --console-log=FILE Log container console output to FILE\n\ 493N/A -C, --close-all-fds If any fds are inherited, close them\n\ 493N/A If not specified, exit with failure instead\n\ 493N/A Note: --daemon implies --close-all-fds\n\ 493N/A -s, --define KEY=VAL Assign VAL to configuration variable KEY\n\ 493N/A --share-[net|ipc|uts]=NAME Share a namespace with another container or pid\n\ 493N/A * rcfile possibilities: 493N/A * 1. rcfile from random path specified in cli option 493N/A * 3. rcfile not specified and does not exist. 493N/A /* rcfile is specified in the cli option */ 493N/A /* container configuration does not exist */ 493N/A * We should use set_config_item() over &defines, which would handle 493N/A * unset c->lxc_conf for us and let us not use lxc_config_define_load()