Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.51 1999/02/07 16:51:10 peter Exp $ + # $Id: start,v 1.52 1999/03/28 20:05:53 marcus Exp $      VERSION=202; BETA=.b;      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike    -  + # Set up environment + if test -f etc/environment; then +  . etc/environment + fi +    # 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    if uname -r | grep '5\.[5-9]' >/dev/null 2>&1; then    if [ x"$1" != "x--help" ] ; then    echo 'Solaris 2.5 or later detected. Enabling threads (if available).'    fi    DEFINES="$DEFINES -DENABLE_THREADS"    fi   fi
Roxen.git/server/start:90:   parse_args() {    while [ ! c"$1" = "c" ] ; do    case $1 in    -D*)    DEFINES="$DEFINES $1"    ;;   # Used by the 'install' script    --truss)    pike="truss $pike"    ;; +  --no-env-setup) +  pass2="$pass2 $1" +  ;;    --log-dir=*)    LOGDIR=`echo $1 | sed -e 's/--log-dir=//'`    ;;    --config-dir=*)    DIR=`echo $1 | sed -e 's/--config-dir=//'`    FILES=`echo $1 | sed -e's/--config-dir=//' -e's/\.//g' -e's./..g' -e 's.-..g'`    ;;    --pid-file=*)    ROXEN_PID_FILE=`echo $1 | sed -e 's/--pid-file=//'`    export ROXEN_PID_FILE
Roxen.git/server/start:280:   #   # 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   }      start_roxen() { -  args="-DROXEN $DEBUG $DEFINES $pass $program --config-dir=$DIR" +  args="-DROXEN $DEBUG $DEFINES $pass $program --config-dir=$DIR $pass2"    if [ "x$gdb" = "xno" ]; then    echo "PIKE_MODULE_PATH=$PIKE_MODULE_PATH"    echo Executing $pike $args $@    $pike $args $@    else    echo Executing gdb $pike $args $@    echo >.gdbinit handle SIGPIPE nostop noprint pass    echo >>.gdbinit handle SIGUSR1 nostop noprint pass    echo >>.gdbinit handle SIGUSR2 nostop noprint pass    echo >>.gdbinit run $args $@