[lxc-devel] [lxc/lxc] 7f12ca: Remove lxc-version, lxc-ps and lxc-netstat

GitHub noreply at github.com
Wed Jan 22 18:38:56 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 7f12cae956c003445e6ee182b414617b52532af6
      https://github.com/lxc/lxc/commit/7f12cae956c003445e6ee182b414617b52532af6
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-01-22 (Wed, 22 Jan 2014)

  Changed paths:
    M .gitignore
    M configure.ac
    M doc/Makefile.am
    M doc/ja/Makefile.am
    R doc/ja/lxc-netstat.sgml.in
    R doc/ja/lxc-ps.sgml.in
    R doc/ja/lxc-version.sgml.in
    M doc/ja/lxc.sgml.in
    M doc/ja/see_also.sgml.in
    R doc/lxc-netstat.sgml.in
    R doc/lxc-ps.sgml.in
    R doc/lxc-version.sgml.in
    M doc/lxc.sgml.in
    M doc/see_also.sgml.in
    M src/lxc/Makefile.am
    M src/lxc/arguments.c
    M src/lxc/arguments.h
    R src/lxc/lxc-netstat.in
    R src/lxc/lxc-ps.in
    R src/lxc/lxc-version.in

  Log Message:
  -----------
  Remove lxc-version, lxc-ps and lxc-netstat

lxc-ps and lxc-netstat have an unfortunate tendency to break every so
often, produce mostly unreadable output and should be replaced by a
lxc-attach call in 99% of the cases.

In an effort to cleanup the lxc-* namespace, I think those two should
go, so this patch gets rid of them as well as any reference to them in
our documentation.

I also think that lxc-version should disappear as it's only a one line
shell script printing the version string, so having a whole command just
for that seems to be a bit of a waste.

Instead, this patch introduces a new --version common option which all
binaries will automatically inherit and that'll print LXC_VERSION on
stdout and exit 0.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


  Commit: 2177dbc7e095b59f2c5403aeb9e5bd423af19424
      https://github.com/lxc/lxc/commit/2177dbc7e095b59f2c5403aeb9e5bd423af19424
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-01-22 (Wed, 22 Jan 2014)

  Changed paths:
    M src/lxc/lxc_info.c

  Log Message:
  -----------
  lxc-info: Limit information when not running

Don't try to print the PID, IP addresses or statistics for a container
that's not current running.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/0306de4f280a...2177dbc7e095


More information about the lxc-devel mailing list