Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
Created March 11, 2014 15:25
Show Gist options
  • Save nelsnelson/9488083 to your computer and use it in GitHub Desktop.
Save nelsnelson/9488083 to your computer and use it in GitHub Desktop.
lxc-execute comparison A
$ sudo lxc-execute -n test -l DEBUG -o /tmp/lxc.log -- echo hello world
hello world
$ cat /tmp/lxc.log
lxc-execute 1391753212.665 INFO lxc_lsm - LSM security driver SELinux
lxc-execute 1391753212.665 DEBUG lxc_start - sigchild handler set
lxc-execute 1391753212.665 INFO lxc_console - no console for lxc-execute.
lxc-execute 1391753212.665 INFO lxc_start - 'test' is initialized
lxc-execute 1391753212.671 DEBUG lxc_start - Not dropping cap_sys_boot or watching utmp
lxc-execute 1391753212.671 INFO lxc_cgroup - cgroup driver cgroupfs initing for test
lxc-execute 1391753212.674 DEBUG lxc_conf - Set exec command to echo
lxc-execute 1391753212.675 DEBUG lxc_conf - capabilities have been setup
lxc-execute 1391753212.675 NOTICE lxc_conf - 'test' is setup.
lxc-execute 1391753212.675 WARN lxc_start - inherited fd 4
lxc-execute 1391753212.675 WARN lxc_start - inherited fd 6
lxc-execute 1391753212.675 NOTICE lxc_execute - exec'ing 'echo'
lxc-execute 1391753212.677 NOTICE lxc_execute - 'echo' started with pid '9255'
lxc-execute 1391753212.678 INFO lxc_console - no console for lxc-execute.
lxc-execute 1391753212.678 WARN lxc_start - invalid pid for SIGCHLD
lxc-execute 1391753212.682 DEBUG lxc_start - container init process exited
lxc-execute 1391753212.682 INFO lxc_conf - running to reset 0 nic names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment