Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.240 2011/01/21 00:23:25 mast Exp $ + # $Id: start,v 1.241 2011/01/24 16:36:41 mast 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:180:   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 -DSELF_TEST_DIR=\"$SELF_TEST_DIR\" $DEFINES"    rm -rf "$VARDIR/test_config"*    DIR="$VARDIR/test_config"    if [ -f "$SELF_TEST_DIR/scripts/setup.pike" ] ; then -  $PIKE "$SELF_TEST_DIR/scripts/setup.pike" "$SELF_TEST_DIR" "$VARDIR" +  $PIKE $DEFINES "$SELF_TEST_DIR/scripts/setup.pike" "$SELF_TEST_DIR" "$VARDIR"    fi    once=${once:-1}    debug=1    #remove_dumped=1   }      parse_args() {    while [ ! c"$1" = "c" ] ; do    case "$1" in    -D*)
Roxen.git/server/start:366:    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 +  do_setup_for_tests=1    ;;    '--self-test-quiet')    SILENT_START=y    do_pipe="| grep ' |'" -  setup_for_tests +  do_setup_for_tests=1    debug=-1    ;;    '--self-test-verbose')    pass="$pass --tests-verbose=1" -  setup_for_tests +  do_setup_for_tests=1    ;;    '--help'|'-?')    if [ "x$passhelp" = "x1" ] ; then    pass="$pass --help"    else    sed -e "s/\\.B/`tput 'bold' 2>/dev/null`/g" -e "s/B\\./`tput 'sgr0' 2>/dev/null`/g" << EOF   .BThis command will start the Roxen WebServerB..      The environment variable .BROXEN_ARGSB. can be used to specify   the default arguments.
Roxen.git/server/start:581:    tput 'rmso' 2>/dev/null    exit 0    fi    ;;    *)    pass="$pass '`echo \"$1\" | sed -e \"s/'/'\\\"'\\\"'/g\"`'"    ;;    esac    shift    done +  +  if [ "x$do_setup_for_tests" = x1 ]; then +  setup_for_tests +  fi   }      if [ ! "X$ROXEN_ARGS" = "X" ]; then    parse_args $ROXEN_ARGS   fi      parse_args "$@"      if [ "$once" = "" ]; then :; else    # Once-mode.