3 # openstack-cinder-scheduler OpenStack cinder Scheduler
6 # description: Determines which physical hardware to allocate to a virtual resource
10 # Required-Start: $remote_fs $network $syslog
11 # Required-Stop: $remote_fs $syslog
13 # Short-Description: OpenStack cinder Scheduler
14 # Description: Determines which physical hardware to allocate to a virtual resource
17 . /etc/rc.d/init.d/functions
20 prog=openstack-cinder-$suffix
21 exec="/usr/bin/cinder-$suffix"
22 config="/etc/cinder/cinder.conf"
23 distconfig="/usr/share/cinder/cinder-dist.conf"
24 pidfile="/var/run/cinder/cinder-$suffix.pid"
25 logfile="/var/log/cinder/$suffix.log"
27 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
29 lockfile=/var/lock/subsys/$prog
32 [ -x $exec ] || exit 5
33 [ -f $config ] || exit 6
34 echo -n $"Starting $prog: "
35 daemon --user cinder --pidfile $pidfile "$exec --config-file $distconfig --config-file $config --logfile $logfile &>/dev/null & echo \$! > $pidfile"
38 [ $retval -eq 0 ] && touch $lockfile
43 echo -n $"Stopping $prog: "
44 killproc -p $pidfile $prog
47 [ $retval -eq 0 ] && rm -f $lockfile
65 status -p $pidfile $prog
69 rh_status >/dev/null 2>&1
95 condrestart|try-restart)
100 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"