Package: lxc Version: 1.0.0-2 Severity: minor Tags: upstream attached fixed lxc-list script
Regards -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages lxc depends on: pn libapparmor1 <none> ii libc6 2.18-1 ii libcap2 1:2.22-1.2 ii multiarch-support 2.18-1 Versions of packages lxc recommends: ii debootstrap 1.0.59 ii libcap2-bin 1:2.22-1.2 lxc suggests no packages.
#!/bin/sh ## Copyright (C) 2006-2014 Daniel Baumann <m...@daniel-baumann.ch> ## ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. ## This is free software, and you are welcome to redistribute it ## under certain conditions; see COPYING for details. set -e .. /usr/share/lxc/lxc.functions if [ ! -x "$(which lxc-info 2>/dev/null)" ] then echo "E: lxc-info - no such file" >&2 exit 1 fi for _STATUS in RUNNING FROZEN STOPPED do echo ${_STATUS} for _CONTAINER in $(lxc-ls) do if lxc-info -n ${_CONTAINER} 2>&1 | grep -qs "${_STATUS}" then printf " %-55.50s" "${_CONTAINER}" if [ -e /etc/lxc/auto/${_CONTAINER} ] then printf "%-10.6s" "(auto)" else printf "%-10.6s" " " fi case "${_STATUS}" in RUNNING) if ps -eaf | grep -sq "lxc-console --name ${_CONTAINER}\$" then printf "%-10.9s" "[CONSOLE]" fi ;; esac printf "\n" fi done echo done