From 22e3bdede31e7bc892dbebd385bf34ac3264ee32 Mon Sep 17 00:00:00 2001 From: Prince Mbekwa Date: Tue, 1 Dec 2009 12:42:56 +0200 Subject: [PATCH] Added exit test for lucene Committed By: Prince Mbekwa --- dmsctl.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmsctl.sh b/dmsctl.sh index 4de67f5..b84946e 100755 --- a/dmsctl.sh +++ b/dmsctl.sh @@ -267,8 +267,9 @@ stop_lucene() { get_lucene_pid cd $INSTALL_PATH/search2/indexing/bin $ZEND_DIR/bin/php shutdown.php positive &> $INSTALL_PATH/var/log/dmsctl.log + exit=$? sleep 5 - if [ $? -eq 0 ]; then + if [ $exit -eq 0 ]; then echo "$0 $ARG: lucene stopped" else echo "$0 $ARG: lucene could not be stopped" -- libgit2 0.21.4