Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.79 1999/10/08 17:20:34 per Exp $ + # $Id: start,v 1.80 1999/11/03 20:19:32 grubba Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"      cd `dirname $0`      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike
Roxen.git/server/start:72:   ## GNU-style, long options only, except for -D, simply passed on.   ARGS=""      parse_args() {    while [ ! c"$1" = "c" ] ; do    case $1 in    -D*)    DEFINES="$DEFINES $1"    ;;    -l*) -  ARGS="$DEFINES $1" +  ARGS="$ARGS $1"    ;;   # Used by the 'install' script    --truss)    pike="truss $pike"    ;;    --truss-c)    pike="truss -c $pike"    ;;    --log-dir=*)    LOGDIR=`echo $1 | sed -e 's/--log-dir=//'`
Roxen.git/server/start:155:    once=1    shift    ;;    '--cd')    cd_to="$2"    # Use the absolute path...    roxendir="`pwd`"    once=1    shift    ;; -  -d*|-t*|-l*) +  -d*|-t*|-l*|-w*)    # Argument passed along to Pike.    ARGS="$ARGS $1"    ;;    -D*|-M*|-I*|-P*)    # Argument passed along to Pike.    DEFINES="$DEFINES $1"    ;;    '--version')    if [ -f base_server/roxen.pike ]; then    VERSION="`sed <base_server/roxen.pike -e'/__roxen_version__/s/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`"
Roxen.git/server/start:278:       .B-P<path>B.: Add the path to the Pike program path.       .B-dtB.: Turn of tail recursion optimization.       .B-tB.: Turn on Pike level tracing.       .B-t<level>B.: Turn on more Pike tracing. This only    works if Pike is compiled with debug.    +  .B-wB.: Turn on Pike warnings.       .BEnvironment variables:B.       .BLANGB.: Used to determine the default locale    in the configuration 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.   
Roxen.git/server/start:390:      # Extra kludge for HPUX   # HPUX doesn't like group 60001(nobody)   if uname | grep 'HP-UX' >/dev/null 2>&1; then    if [ $verbose -gt 0 ]; then    echo "$pre WARNING: Applying kludge for HPUX. (see base_server/privs.pike)"    else :; fi    DEFINES="$DEFINES -DHPUX_KLUDGE"   fi    +  + case "x$debug" in +  "x") +  DEBUG="-DMODULE_DEBUG" +  ;; +  "x-1") +  DEBUG="" +  ;; +  "x1") +  DEBUG="-DDEBUG -DMODULE_DEBUG" +  ARGS="$ARGS -w" +  ;; + esac +  + DEFINES="$DEBUG $DEFINES" +    ####### END PIKE OPTIONS         #   # Some useful functions   #      rotate () {    b=5;    for a in 4 3 2 1 ; do mv -f $1.$a $1.$b 2> /dev/null; b=$a; done
Roxen.git/server/start:430:    echo >>.gdbinit handle SIGUSR2 nostop noprint pass    echo >>.gdbinit run $args $@    gdb $pike    rm .gdbinit    fi   }      #   # Now do the stuff   # -  - if [ -z "$debug" ] ; then -  DEBUG="-DMODULE_DEBUG"; - else -  DEBUG="-DDEBUG -DMODULE_DEBUG" - fi -  - if [ "x$debug" = "x-1" ] ; then -  DEBUG=""; - else :; fi -  - DEFINES="$DEBUG $DEFINES" +    PIKEVERSION=`$pike --version 2>&1`         if [ "$program" = "base_server/roxenloader.pike" ] ; then    if [ "`cat .old_roxen_defines 2>/dev/null`" != "$PIKEVERSION $DEFINES" ] ; then    remove_old_dot_o_files "DEFINES changed"    fi    echo "$PIKEVERSION $DEFINES" > .old_roxen_defines   fi