[Ovirt-devel] [PATCH server] make dnsmasq start earlier on boot otherwise dbomatic/taskomatic fail due to timeouts

Jeremy Katz katzj at redhat.com
Mon Feb 16 16:31:35 UTC 2009


On Friday, February 13 2009, Joey Boggs said:
> ---
>  installer/modules/ovirt/manifests/dns.pp |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/installer/modules/ovirt/manifests/dns.pp b/installer/modules/ovirt/manifests/dns.pp
> index cbe706a..8fb8045 100644
> --- a/installer/modules/ovirt/manifests/dns.pp
> +++ b/installer/modules/ovirt/manifests/dns.pp
> @@ -66,6 +66,10 @@ define dns::common($mgmt_ipaddr="", $prov_ipaddr="",$mgmt_dev="",$prov_dev="") {
>          notify => Service[dnsmasq],
>      }
>  
> +    single_exec {"make_dnsmasq_start_earlier":
> +        command => "/bin/mv /etc/rc3.d/S99dnsmasq /etc/rc3.d/S95dnsmasq;/bin/mv /etc/rc5.d/S99dnsmasq /etc/rc5.d/S95dnsmasq",
> +        require => Package["dnsmasq"]
> +    }
>  }

This is going to break in any circumstance that the dnsmasq package is
upgraded or chkconfig is re-run for various reasons.  This really needs
to be fixed by changing the initscript in the package and not by moving
symlinks around.  

Although, actually, it looks like there's also some support in chkconfig
for override files -- read the bit on override files and chkconfig
--override in chkconfig(8) to give a short-term solution until the
package is changed

Jeremy




More information about the ovirt-devel mailing list