3 # openstack-cinder-volume OpenStack cinder Volume Worker
6 # description: Volume Workers interact with iSCSI storage to manage \
7 # LVM-based instance volumes. Specific functions include: \
10 # * Establish Compute volumes
14 # Required-Start: $remote_fs $network $syslog
15 # Required-Stop: $remote_fs $syslog
17 # Short-Description: OpenStack cinder Volume Worker
18 # Description: Volume Workers interact with iSCSI storage to manage
19 # LVM-based instance volumes. Specific functions include:
22 # * Establish Compute volumes
25 . /etc/rc.d/init.d/functions
28 prog=openstack-cinder-$suffix
29 exec="/usr/bin/cinder-$suffix"
30 config="/etc/cinder/cinder.conf"
31 distconfig="/usr/share/cinder/cinder-dist.conf"
32 pidfile="/var/run/cinder/cinder-$suffix.pid"
33 logfile="/var/log/cinder/$suffix.log"
35 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
37 lockfile=/var/lock/subsys/$prog
40 [ -x $exec ] || exit 5
41 [ -f $config ] || exit 6
42 echo -n $"Starting $prog: "
43 daemon --user cinder --pidfile $pidfile "$exec --config-file $distconfig --config-file $config --logfile $logfile &>/dev/null & echo \$! > $pidfile"
46 [ $retval -eq 0 ] && touch $lockfile
51 echo -n $"Stopping $prog: "
52 killproc -p $pidfile $prog
55 [ $retval -eq 0 ] && rm -f $lockfile
73 status -p $pidfile $prog
77 rh_status >/dev/null 2>&1
103 condrestart|try-restart)
104 rh_status_q || exit 0
108 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"