[libvirt] [PATCH v2] Experimental libvirtd upstart job

Serge Hallyn serge.hallyn at canonical.com
Mon Apr 18 20:55:12 UTC 2011


Quoting Jiri Denemark (jdenemar at redhat.com):
> On Mon, Apr 18, 2011 at 08:09:48 -0500, Serge Hallyn wrote:
> > Quoting Jiri Denemark (jdenemar at redhat.com):
> > > exec stanza instead of script ... no script. Unfortunately, with exec
> > > stanza environment variables can only be set within upstart script
> > > (i.e., configuration in /etc/sysconfig/libvirtd can't work). Hence, we
> > > need to use script stanza, source sysconfig, and execute libvirtd
> > > without --daemon. For similar reasons we can't use limit stanza and need
> > > to handle DAEMON_COREFILE_LIMIT in job's script.
> > 
> > Why can't you do that stuff in a pre-start script?
> 
> I tried that but any change to the variables didn't get propagated into
> variables used in the exec stanza.

Hm, right you are.  I was thinking pre-start could set up env's, but it
can't.

thanks,
-serge




More information about the libvir-list mailing list