3 if [ "$1" = "configure" ]; then
4 chown cinder:cinder /var/lib/cinder/volumes
5 chmod 0750 /var/lib/cinder/volumes
6 chown root:root /etc/cinder/rootwrap.d/volume.filters
8 if which invoke-rc.d >/dev/null 2>&1; then
9 invoke-rc.d tgtd restart > /dev/null 2>&1 || true
11 /etc/init.d/tgtd restart > /dev/null 2>&1 || true
14 if which invoke-rc.d >/dev/null 2>&1; then
15 invoke-rc.d cinder-volume restart > /dev/null 2>&1 || true
17 /etc/init.d/cinder-volume restart > /dev/null 2>&1 || true