[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH v2] Experimental libvirtd upstart job



On Mon, Apr 18, 2011 at 08:09:48 -0500, Serge Hallyn wrote:
> Quoting Jiri Denemark (jdenemar 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.

I tried something like:

env LIBVIRTD_CONFIG_ARGS=
env LIBVIRTD_ARGS=

pre-start script
    source sysconfig files and set those variables
end script

exec /usr/sbin/libvirtd --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS

and libvirtd wasn't started with anything but --daemon.

Jirka


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]