X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=rpm%2FSOURCES%2Fopenstack-cinder-api.init;h=1fb46a7b6b73829fc4925667ea16f781a11fe402;hb=2488c85b5b4a4be509c0d7365dfffd3ba28258a8;hp=01045ebea9fa9ed38d1cf6c16f435558cb3405d0;hpb=ffe44b0901971575f97f4e5078e3a0d54313cf25;p=openstack-build%2Fcinder-build.git diff --git a/rpm/SOURCES/openstack-cinder-api.init b/rpm/SOURCES/openstack-cinder-api.init index 01045ebea..1fb46a7b6 100644 --- a/rpm/SOURCES/openstack-cinder-api.init +++ b/rpm/SOURCES/openstack-cinder-api.init @@ -28,6 +28,7 @@ suffix=api prog=openstack-cinder-$suffix exec="/usr/bin/cinder-$suffix" config="/etc/cinder/cinder.conf" +distconfig="/usr/share/cinder/cinder-dist.conf" pidfile="/var/run/cinder/cinder-$suffix.pid" logfile="/var/log/cinder/$suffix.log" @@ -39,7 +40,7 @@ start() { [ -x $exec ] || exit 5 [ -f $config ] || exit 6 echo -n $"Starting $prog: " - daemon --user cinder --pidfile $pidfile "$exec --config-file $config --logfile $logfile &>/dev/null & echo \$! > $pidfile" + daemon --user cinder --pidfile $pidfile "$exec --config-file $distconfig --config-file $config --logfile $logfile &>/dev/null & echo \$! > $pidfile" retval=$? echo [ $retval -eq 0 ] && touch $lockfile