[lxc-devel] Please consider to use setproctitle with container name is lxc-autostart

Stéphane Graber stgraber at ubuntu.com
Thu Feb 27 20:18:07 UTC 2014


On Thu, Feb 27, 2014 at 03:41:16AM +0100, Gianluigi Tiesi wrote:
> I was using lxc-start -n container -d and will showing processes on
> the host I was able to easy understand the container e.g. using htop
> with tree option.
> 
> with lxc-autostart there is no easy way to understand the container name,
> it would be nice to add something like:
> lxc-autostart (containername) in proctitle
> 
> a simple linux-only implementation can be found here:
> 
> https://github.com/karelzak/util-linux/blob/master/lib/setproctitle.c
> 
> Regards

Technically the actual fork() is pretty far down the line, so it
probably shouldn't be done by lxc-autostart but somewhere in the start()
function of the API.

We however may want to detect and special case lxc-start and lxc-execute
then as those already have the container name in their title.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140227/302d6403/attachment.pgp>


More information about the lxc-devel mailing list