Commit 22e3bdede31e7bc892dbebd385bf34ac3264ee32

Authored by Prince Mbekwa
1 parent 6bd0fbeb

Added exit test for lucene

Committed By: Prince Mbekwa
Showing 1 changed file with 2 additions and 1 deletions
dmsctl.sh
... ... @@ -267,8 +267,9 @@ stop_lucene() {
267 267 get_lucene_pid
268 268 cd $INSTALL_PATH/search2/indexing/bin
269 269 $ZEND_DIR/bin/php shutdown.php positive &> $INSTALL_PATH/var/log/dmsctl.log
  270 + exit=$?
270 271 sleep 5
271   - if [ $? -eq 0 ]; then
  272 + if [ $exit -eq 0 ]; then
272 273 echo "$0 $ARG: lucene stopped"
273 274 else
274 275 echo "$0 $ARG: lucene could not be stopped"
... ...