[Ovirt-devel] [PATCH] move collectd runlevel to start after libvirt

Perry N. Myers pmyers at redhat.com
Thu Jun 5 16:43:39 UTC 2008


Alan Pevec wrote:
> as reviewer kindly pointed out, we need to create chkconfig.d first
> and this all must happen in %post not initscript!

ACK, ship it :)

Perry

> 
> diff --git a/ovirt-host-creator/common-post.ks 
> b/ovirt-host-creator/common-post.ks
> index cc64b80..833050a 100644
> --- a/ovirt-host-creator/common-post.ks
> +++ b/ovirt-host-creator/common-post.ks
> @@ -344,7 +344,6 @@ start() {
>             -e "s/@COLLECTD_PORT@/$SRV_PORT/" $collectd_conf.in \
>             > $collectd_conf \
>           || die "Failed to write $collectd_conf"
> -        service collectd restart
>     fi
> 
>     success
> @@ -364,6 +363,10 @@ EOF
> chmod +x /etc/init.d/ovirt
> chkconfig ovirt on
> 
> +mkdir -p /etc/chkconfig.d
> +echo "# chkconfig: 345 98 02" > /etc/chkconfig.d/collectd
> +chkconfig collectd on
> +
> echo "Setting up libvirt interfaces"
> # make libvirtd listen on the external interfaces
> sed -i -e 's/^#\(LIBVIRTD_ARGS="--listen"\).*/\1/' /etc/sysconfig/libvirtd
> 
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel


-- 
|=-        Red Hat, Engineering, Emerging Technologies, Boston        -=|
|=-                     Email: pmyers at redhat.com                      -=|
|=-         Office: +1 412 474 3552   Mobile: +1 703 362 9622         -=|
|=- GnuPG: E65E4F3D 88F9 F1C9 C2F3 1303 01FE 817C C5D2 8B91 E65E 4F3D -=|




More information about the ovirt-devel mailing list