Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.230 2008/03/21 13:48:56 grubba Exp $ + # $Id: start,v 1.231 2008/06/18 21:15:57 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:346:    shift    ;;    --debug-without=*|-r*|-d*|-t*|-l*|-w*|-a*|-p*|--*-debug*)    # Argument passed along to Pike.    ARGS="$ARGS $1"    ;;    -D*|-M*|-I*|-P*)    # Argument passed along to Pike.    DEFINES="$DEFINES \"$1\""    ;; +  --pikeargs=*) +  PIKEARGS="$PIKEARGS "`expr "$1" : '--pikeargs=\(.*\)'` +  ;;    '--version')    if [ "x$passhelp" = "x1" ] ; then    pass="$pass --version"    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_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    ;;
Roxen.git/server/start:550:    .B-t<level>B.: Turn on more Pike tracing. This only    works if Pike is compiled with debug    (i.e. with --rtl-debug to configure).       .B-a<level>B.: Turn on Pike assembler debug. This only    works if Pike is compiled with debug    (i.e. with --rtl-debug to configure).       .B-wB.: Turn on Pike warnings.    +  .B--pikeargs=<args>B.: Pass arbitrary arguments to Pike. +     .BEnvironment variables:B.       .BLANGB.: Used to determine the default locale    in the administration interface and logs.    .BROXEN_CONFIGDIRB.: Same as .B--config-dir=... B.    .BROXEN_PID_FILEB.: Same as .B--pid-file=... B.    .BROXEN_LANGB.: The default language for all language    related tags. Defaults to 'en' for english.      EOF
Roxen.git/server/start:785:   }      start_roxen() {    check_owner    raise_limit       if [ x$remove_dumped = x1 ] ; then    remove_old_dot_o_files "user request"    fi    if [ "x$DIR" != "x../configurations" ] ; then -  args="$DEFINES $ARGS $program --config-dir='`echo \"$DIR\" | sed -e \"s/'/'\\\"'\\\"'/g\"`' $pass" +  args="$PIKEARGS $DEFINES $ARGS $program --config-dir='`echo \"$DIR\" | sed -e \"s/'/'\\\"'\\\"'/g\"`' $pass"    else -  args="$DEFINES $ARGS $program $pass" +  args="$PIKEARGS $DEFINES $ARGS $program $pass"    fi    if [ x"$cd_to" != x ] ; then    cd "$cd_to"    fi    if [ "x$gdb" = "xno" ]; then    if [ "x$once" = "x" ]; then    if [ $verbose -gt 0 ]; then    dp "Executing $pike $args"|sed -e "s!`pwd`!.!g"    fi    eval "fork_roxen \"$pike\" $args 2>>\"${DEBUGLOG}.1\" 1>&2"
Roxen.git/server/start:931:    # This duplicate of the logdir creation code is needed, check the    # redirect below    if [ ! -d "$DEBUGDIR" ] ; then    if ./mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else    dp "Failed to create log directory $DEBUGDIR."    exit 1    fi    fi    if [ -f "bin/setup_nsr.pike" ]; then    # Setup .nsr (Networker) files for the logfile directories. -  eval "\"$pike\" $DEFINES bin/setup_nsr.pike --logdir=\"$LOGDIR\" --debugdir=\"$DEBUGDIR\"" +  eval "\"$pike\" $PIKEARGS $DEFINES bin/setup_nsr.pike --logdir=\"$LOGDIR\" --debugdir=\"$DEBUGDIR\""    fi    if [ $verbose -gt 0 ]; then    dp "Using configuration from $DIR"    dp "Storing the debug log in ${DEBUGLOG}.1"    dp "You can use the administration interface in the server to see debug info."    else :; fi       if (    (    # Minor race here wrt pid file cleanup.