relation between cgred (libcgroup) and libvirt

Serge E. Hallyn serge.hallyn at canonical.com
Mon Feb 14 05:06:33 UTC 2011


Quoting Clint Byrum (clint at ubuntu.com):
> I feel like my answer to everything is this wait-for-state job but ...
> it would solve the issue. You could add, to cgred:
> 
> # libvirt-cgred-wait
> start on starting libvirt-bin
> stop on started cgred or stopped cgred
> 
> task
> normal exit 2
> script
>   status cgred | grep -q "start/running" && exit 0
>   start cgred || true
>   sleep 3600
> end script
> # EOF
> 
> Which will make libvirt wait for cgred only when cgred is installed.

Thanks, Clint, I think I like it.  I'm going to try this one out.

-serge



More information about the upstart-devel mailing list