Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.173 2001/08/06 16:44:37 mast Exp $ + # $Id: start,v 1.174 2001/08/10 09:08:25 wellhard Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.      if [ "x$1" = "x--silent-start" ] ; then    SILENT_START="y"    shift   fi      check_owner() {
Roxen.git/server/start:60:      . bin/functions      # Can be set with '--config-dir=DIR'   DIR=../configurations   LOGDIR=../logs   FILES="default"   program=base_server/roxenloader.pike   VARDIR=../var   LOCALDIR=../local + SELF_TEST_DIR=etc/test      # Make LOCALDIR an absolute path   if test -d $LOCALDIR/.; then    LOCALDIR=`cd $LOCALDIR; pwd`   else :; fi      if test -d $VARDIR/.; then :; else    dp "Creating directory $VARDIR"    ./mkdir -p $VARDIR/ || exit 1   fi
Roxen.git/server/start:127:   ## Parse all arguments.   ## GNU-style, long options only, except for -D, simply passed on.   ARGS=""      setup_for_tests() {    # Kill roxen mysql if it's running...    if [ -f $VARDIR/test_config/_mysql/mysql_pid ] ; then    kill `cat $VARDIR/test_config/_mysql/mysql_pid`    fi    self_test=y -  DEFINES="-DRUN_SELF_TEST $DEFINES" +  DEFINES="-DRUN_SELF_TEST -DSELF_TEST_DIR=\"$SELF_TEST_DIR\" $DEFINES"    rm -rf $VARDIR/test_config* -  cp -R etc/test/config $VARDIR/test_config -  cp etc/test/filesystem/test_rxml_package rxml_packages/test_rxml_package +  cp -R $SELF_TEST_DIR/config $VARDIR/test_config    DIR=$VARDIR/test_config -  +  if [ -f $SELF_TEST_DIR/scripts/setup.sh ] ; then +  $SELF_TEST_DIR/scripts/setup.sh $SELF_TEST_DIR $VARDIR +  fi    once=1    remove_dumped=1   }      parse_args() {    while [ ! c"$1" = "c" ] ; do    case "$1" in    -D*)    DEFINES="$DEFINES $1"    ;;
Roxen.git/server/start:267:    else    if [ -f base_server/roxen.pike ]; then    echo "Roxen WebServer `roxen_version`"    exit 0    else    echo 'base_server/roxen.pike not found!'    exit 1    fi    fi    ;; +  --self-test-dir=*) +  SELF_TEST_DIR=`echo $1 | sed -e's/--self-test-dir=//'` +  ;;    '--self-test')    setup_for_tests    ;;    '--self-test-quiet')    debug=-1    SILENT_START=y    do_pipe="| grep ' |'"    setup_for_tests    ;;    '--self-test-verbose')
Roxen.git/server/start:347:    available until the next server restart    This will enable a new 'action' in the    administration interface       .B--with-file-profileB.: Like .B--with-profileB., but save information    for each and every file.       .B--self-testB.: Runs a testsuite.    .B--self-test-verboseB.: Runs a testsuite, report all tests.    .B--self-test-quietB.: Runs a testsuite, only report errors. +  .B--self-test-dir=DIRB.: Use this self test directory instead of +  the default .Betc/testB. directory.       .B--onceB.: Run the server only once, in the foreground.    This is very useful when debugging. Implies    --module-debug.       .B--keep-mysqlB.: Don't shut down MySQL process when exiting    the start script. Useful during development    or any other scenario where the start script    is frequently terminated.