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 distconfig="/usr/share/cinder/cinder-dist.conf"
26 pidfile="/var/run/cinder/cinder-$suffix.pid"
27 logfile="/var/log/cinder/$suffix.log"
29 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
31 lockfile=/var/lock/subsys/$prog
34 [ -x $exec ] || exit 5
35 [ -f $config ] || exit 6
36 echo -n $"Starting $prog: "
37 daemon --user cinder --pidfile $pidfile "$exec --config-file $distconfig --config-file $config --logfile $logfile &>/dev/null & echo \$! > $pidfile"
40 [ $retval -eq 0 ] && touch $lockfile
45 echo -n $"Stopping $prog: "
46 killproc -p $pidfile $prog
49 [ $retval -eq 0 ] && rm -f $lockfile
67 status -p $pidfile $prog
71 rh_status >/dev/null 2>&1
97 condrestart|try-restart)
102 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"