Quoting ian sison (mailing list) ([email protected]): > Hi all - > > In openvz, a certain sysctl parameter, > > kernel.pid_ns_hide_child = 1 > > when executed at HN system startup will hide any processes that run > inside the running containers from appearing in the output of 'ps'. > This makes for a cleaner 'ps' output in the hardware node, and > prevents inadvertent container malfunctions when something like > 'killall -9 httpd' is executed in the command line of the HN. > > How can i do the same with LXC? My google searches draw up a blank.
It's not currently implemented anywhere that I know of, but you should be able to pretty easily hack lxc-ps (take a look at the script) to show you all tasks which are not in a container. I think that would be a nice patch to push to upstream lxc-ps. 'lxc-ps --host' or something. thanks, -serge ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
