From: Daniel Lezcano <dlezcano@fr.ibm.com>
Added the overview man page for lxc.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
doc/lxc-ps.sgml
doc/lxc-cgroup.sgml
doc/lxc.conf.sgml
doc/lxc-ps.sgml
doc/lxc-cgroup.sgml
doc/lxc.conf.sgml
src/Makefile
src/lxc/Makefile
src/Makefile
src/lxc/Makefile
Warning:
--------
The docbook tool is not installed, the man pages won't be generated.
Warning:
--------
The docbook tool is not installed, the man pages won't be generated.
+If you want the man pages, install docbook and rerun 'configure'.
lxc-ps.1 \
lxc-cgroup.1 \
\
lxc-ps.1 \
lxc-cgroup.1 \
\
+ lxc.conf.5 \
+ \
+ lxc.7
%.5 : %.sgml
docbook2man $<
%.5 : %.sgml
docbook2man $<
+%.7 : %.sgml
+ docbook2man $<
+
- $(RM) manpage.* *.1 *.sgml $(man_MANS)
+ $(RM) manpage.* *.7 *.5 *.1 *.sgml $(man_MANS)
endif
\ No newline at end of file
endif
\ No newline at end of file
{
char init[MAXPATHLEN];
char *val = NULL;
{
char init[MAXPATHLEN];
char *val = NULL;
- char ttyname[MAXPATHLEN];
int fd, lock, sv[2], sync = 0, err = -LXC_ERROR_INTERNAL;
pid_t pid;
int clone_flags;
int fd, lock, sv[2], sync = 0, err = -LXC_ERROR_INTERNAL;
pid_t pid;
int clone_flags;
lock = lxc_get_lock(name);
if (lock < 0) {
lock = lxc_get_lock(name);
if (lock < 0) {
/* Begin the set the state to STARTING*/
if (lxc_setstate(name, STARTING)) {
/* Begin the set the state to STARTING*/
if (lxc_setstate(name, STARTING)) {
- lxc_log_error("failed to set state '%s'", lxc_state2str(STARTING));
+ lxc_log_error("failed to set state '%s'",
+ lxc_state2str(STARTING));
- n = readlink("/proc/self/fd/0", ttyname, sizeof(ttyname));
- if (n < 0) {
- lxc_log_syserror("failed to read '/proc/self/fd/0'");
- goto out;
- }
- ttyname[n] = '\0';
-
/* Synchro socketpair */
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sv)) {
lxc_log_syserror("failed to create communication socketpair");
/* Synchro socketpair */
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sv)) {
lxc_log_syserror("failed to create communication socketpair");
- if (mount(ttyname, "/dev/console", "none", MS_BIND, 0)) {
- lxc_log_syserror("failed to mount '/dev/console'");
- goto out_child;
- }
-
if (prctl(PR_CAPBSET_DROP, CAP_SYS_BOOT, 0, 0, 0)) {
lxc_log_syserror("failed to remove CAP_SYS_BOOT capability");
goto out_child;
if (prctl(PR_CAPBSET_DROP, CAP_SYS_BOOT, 0, 0, 0)) {
lxc_log_syserror("failed to remove CAP_SYS_BOOT capability");
goto out_child;