[lxc-devel] [PATCH] lxc-start: add option -p, --pidfile=FILE for use with --daemon

Natanael Copa ncopa at alpinelinux.org
Wed Nov 14 20:18:48 UTC 2012


On Wed, 14 Nov 2012 08:44:41 -0600
Serge Hallyn <serge.hallyn at canonical.com> wrote:

> Quoting Natanael Copa (ncopa at alpinelinux.org):
> > Add option to create a pidfile for lxc-start daemon. This is helpful
> > for init scripts and process monitors.
> 
> Why only when daemonizing?  Someone could presumably first lxc-start
> by hand in the foreground, then another admin walks in and restarts
> the sysvinit lxc job?

I assume 'someone' starting with lxc-start instead of via sysvinit (or
any other init) would not think of appening --pidfile option, but sure,
I think you have a valid point. I'll prepare a new patch.

-nc




More information about the lxc-devel mailing list