6,534
edits
Changes
VE -> container, CT
# Usage: ./ovzps CTID [ps flags ...]
function find_ve_pidsfind_container_pids(){
local pid
local myveidmyctid=$1 local vepidsctpids=
for pid in $ALLPIDS; do
[ -f /proc/$pid/status ] || continue
fi
done
echo "$vepidsctpids"
}
ALLPIDS=`ps -A -o pid --no-headers`
shift
if [ -n "${VEPIDSCTPIDS}" ]; then ps $* -p $VEPIDSCTPIDS
else
exit 0