As suggested on the upstart-dev list by Clint, I'll add the following upstart job 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
As suggested on the upstart-dev list by Clint, I'll add the following upstart job 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