Commit df4341dc10512df84c33f1337f76797444e73c3b

Authored by kevin_fourie
1 parent feedbed9

KTS-2568

"Add scheduler service to Linux"
Updated. Fixed script error.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7507 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 7 additions and 9 deletions
examples/linux/init/dmsctl.sh
... ... @@ -467,28 +467,26 @@ start_scheduler() {
467 467 fi
468 468 }
469 469  
470   -stop_xvfb() {
471   -if [ $USEXVFB -eq 1 ]; then
  470 +stop_scheduler() {
472 471 NO_EXIT_ON_ERROR=$1
473   - is_xvfb_running
  472 + is_scheduler_running
474 473 RUNNING=$?
475 474  
476 475 if [ $RUNNING -eq 0 ]; then
477   - echo "$0 $ARG: $XVFB_STATUS"
  476 + echo "$0 $ARG: $SCHEDULER_STATUS"
478 477 if [ "x$NO_EXIT_ON_ERROR" != "xno_exit" ]; then
479 478 exit
480 479 else
481 480 return
482 481 fi
483 482 fi
484   - get_xvfb_pid
485   - if killall $XVFBBIN ; then
486   - echo "$0 $ARG: Xvfb stopped"
  483 + get_scheduler_pid
  484 + if killall $SCHEDULERBIN ; then
  485 + echo "$0 $ARG: schedulerstopped"
487 486 else
488   - echo "$0 $ARG: Xvfb could not be stopped"
  487 + echo "$0 $ARG: scheduler could not be stopped"
489 488 ERROR=4
490 489 fi
491   -fi
492 490 }
493 491  
494 492 help() {
... ...