3 # openstack-cinder-backup OpenStack Cinder Backup Service
6 # description: The backup service provides a way to back up Cinder \
11 # Required-Start: $remote_fs $network $syslog
12 # Required-Stop: $remote_fs $syslog
14 # Short-Description: OpenStack Cinder Backup Service
15 # Description: The backup service provides a way to back up Cinder \
19 . /etc/rc.d/init.d/functions
22 prog=openstack-cinder-$suffix
23 exec="/usr/bin/cinder-$suffix"
24 config="/etc/cinder/cinder.conf"
25 pidfile="/var/run/cinder/cinder-$suffix.pid"
26 logfile="/var/log/cinder/$suffix.log"
28 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
30 lockfile=/var/lock/subsys/$prog
33 [ -x $exec ] || exit 5
34 [ -f $config ] || exit 6
35 echo -n $"Starting $prog: "
36 daemon --user cinder --pidfile $pidfile "$exec --config-file $config --logfile $logfile &>/dev/null & echo \$! > $pidfile"
39 [ $retval -eq 0 ] && touch $lockfile
44 echo -n $"Stopping $prog: "
45 killproc -p $pidfile $prog
48 [ $retval -eq 0 ] && rm -f $lockfile
66 status -p $pidfile $prog
70 rh_status >/dev/null 2>&1
96 condrestart|try-restart)
101 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"