Re: [PATCH v2] Experimental libvirtd upstart job

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

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]