Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.35 1998/05/11 19:40:14 grubba Exp $ + # $Id: start,v 1.36 1998/06/02 18:45:34 grubba Exp $    - VERSION=201; BETA=.a; + VERSION=202; BETA=.b;      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike      # Enable threads (if available) on Solaris.   # Most other OS's have thread bugs that cause them or Roxen to crash.   if uname | grep 'SunOS' >/dev/null 2>&1; then
Roxen.git/server/start:75:   if uname | grep 'HP-UX' >/dev/null 2>&1; then    echo 'WARNING: Applying kludge for HPUX. (see base_server/privs.pike)'    DEFINES="$DEFINES -DHPUX_KLUDGE"   fi      pike=pike   if [ -x bin/pike ] ; then pike=bin/pike; fi   if [ -x bin/roxen ] ; then pike=bin/roxen; fi   if [ -x "$PIKE" ]; then pike="$PIKE"; fi    + gdb=no +    rotate () {    b=5;    for a in 4 3 2 1 ; do mv -f $1.$a $1.$b 2> /dev/null; b=$a; done   }      start_roxen() {    args="-DROXEN $DEBUG $DEFINES $pass $program --config-dir=$DIR" -  +  if [ "x$gdb" = "xno" ]; then    echo Executing $pike $args $@    $pike $args $@ -  +  else +  echo Executing gdb $pike $args $@ +  echo >.gdbinit handle SIGPIPE nostop noprint pass +  echo >>.gdbinit run $args $@ +  gdb $pike +  rm .gdbinit +  fi   }   ####### END PREAMBLE      ## Parse all arguments.   ## GNU-style, long options only, except for -D, simply passed on.   parse_args() {    while [ ! c"$1" = "c" ] ; do    case $1 in    -D*)    DEFINES="$DEFINES $1"
Roxen.git/server/start:124:    ;;    '--profile')    DEFINES="-DPROFILE $DEFINES"    ;;    '--keep-alive')    DEFINES="-DKEEP_ALIVE $DEFINES"    ;;    '--once')    once=1    ;; +  '--gdb') +  gdb=gdb +  once=1 +  ;;    '--program')    program="$2"    shift    ;;    '--version')    echo Roxen Challenger 1.`expr $VERSION / 100`$BETA`expr $VERSION % 100`    exit 0    ;;    '--help'|'-?')    tput 'bold' 2>/dev/null    cat << EOF - Syntax: $0 [--version] [--config-dir=DIR] [--log-dir=DIR] [-DDEFINE] [--threads] [--no-threads] [--profile] [--keep-alive] + Syntax: $0 [--version] [--config-dir=DIR] [--log-dir=DIR] [-DDEFINE] [--threads] [--no-threads] [--profile] [--keep-alive] [--once] [--gdb] [--program=PROGRAM] [--help]   This command will start the Roxen server.   If the configuration dir is set, a different set of debuglogfiles   will be used.      The environment variable ROXEN_ARGS can be used to specify   the default arguments.   EOF    tput 'rmso' 2>/dev/null    exit 0    ;;