Commit 61bacbae540062324ba78d66e6126d1c24b88602

Authored by kevin_fourie
1 parent 78b35e12

KTS-2509

"OpenOffice service is not starting under Suse and RHEL"
Updated example dmsctl.sh file.

Committed By: Keivn Fourie
Reviewed By: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@7433 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 13 additions and 2 deletions
examples/linux/init/dmsctl.sh
... ... @@ -11,6 +11,7 @@ RETVAL=0
11 11 PID=""
12 12 ERROR=0
13 13 SERVER=all
  14 +USEXVFB=0
14 15 VDISPLAY="99"
15 16 INSTALL_PATH=@@BITROCK_INSTALLDIR@@
16 17 JAVABIN=$INSTALL_PATH/j2re/bin/java
... ... @@ -45,7 +46,11 @@ SOFFICE_PIDFILE=$INSTALL_PATH/openoffice/soffice.bin.pid
45 46 SOFFICE_PID=""
46 47 SOFFICE_PORT="8100"
47 48 SOFFICEBIN=$INSTALL_PATH/openoffice/program/soffice.bin
48   -SOFFICE="$SOFFICEBIN -nofirststartwizard -nologo -headless -display :$VDISPLAY -accept=socket,host=localhost,port=$SOFFICE_PORT;urp;StarOffice.ServiceManager"
  49 +if [ $USEXVFB -eq 1 ]; then
  50 + SOFFICE="$SOFFICEBIN -nofirststartwizard -nologo -headless -display :$VDISPLAY -accept=socket,host=localhost,port=$SOFFICE_PORT;urp;StarOffice.ServiceManager"
  51 +else
  52 + SOFFICE="$SOFFICEBIN -nofirststartwizard -nologo -headless -accept=socket,host=localhost,port=$SOFFICE_PORT;urp;StarOffice.ServiceManager"
  53 +fi
49 54 SOFFICE_STATUS=""
50 55  
51 56 # Lucene
... ... @@ -283,6 +288,7 @@ stop_apache() {
283 288 }
284 289  
285 290 start_xvfb() {
  291 +if [ $USEXVFB -eq 1 ]; then
286 292 is_xvfb_running
287 293 RUNNING=$?
288 294  
... ... @@ -298,10 +304,12 @@ start_xvfb() {
298 304 echo "$0 $ARG: xvfb could not be started"
299 305 ERROR=3
300 306 fi
  307 + fi
301 308 fi
302 309 }
303 310  
304 311 stop_xvfb() {
  312 +if [ $USEXVFB -eq 1 ]; then
305 313 NO_EXIT_ON_ERROR=$1
306 314 is_xvfb_running
307 315 RUNNING=$?
... ... @@ -321,6 +329,7 @@ stop_xvfb() {
321 329 echo "$0 $ARG: Xvfb could not be stopped"
322 330 ERROR=4
323 331 fi
  332 +fi
324 333 }
325 334  
326 335 start_soffice() {
... ... @@ -399,7 +408,9 @@ stop_lucene() {
399 408 fi
400 409 fi
401 410 get_lucene_pid
402   - if killall $JAVABIN ; then
  411 + cd $INSTALL_PATH/knowledgeTree/search2/indexing/bin
  412 + $INSTALL_PATH/php/bin/php shutdown.php positive >/dev/null 2>&1 &
  413 + if [ $? -eq 0 ]; then
403 414 echo "$0 $ARG: lucene stopped"
404 415 else
405 416 echo "$0 $ARG: lucene could not be stopped"
... ...