]> review.fuel-infra Code Review - openstack-build/cinder-build.git/blob - trusty/debian/tests/cinder-daemons
Add cinder 2015.1 for Kilo
[openstack-build/cinder-build.git] / trusty / debian / tests / cinder-daemons
1 #!/bin/bash
2 #-----------------------
3 # Testing cinder-daemons
4 #-----------------------
5 set -e
6 DAEMONS=('cinder-api' 'cinder-scheduler')
7
8 for daemon in "${DAEMONS[@]}"; do
9     if pidof -x $daemon > /dev/null; then
10         echo "OK"
11     else
12         echo "ERROR: ${daemon} IS NOT RUNNING"
13         exit 1
14     fi
15 done