Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.105 2000/03/29 17:09:11 grubba Exp $ + # $Id: start,v 1.106 2000/03/30 19:57:38 leif 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:29:   pcdir="$VARDIR/`roxen_version`/precompiled/`uname -m`.`uname -r`"   old_roxen_defines="$pcdir/old_roxen_defines"   ./mkdir -p $pcdir      # Default verbosity level.   verbose=1      # Do not default to using a relative path.   roxendir="`pwd`"    - # Set up environment - if test -f $LOCALDIR/environment; then -  . $LOCALDIR/environment - fi -  - # Make sure $CLASSPATH contains the servlet stuff - CLASSPATH=java/classes/roxen_module.jar:java/classes/roxen_servlet.jar:java/classes/servlet.jar:java/classes${CLASSPATH:+:}$CLASSPATH - export CLASSPATH -  -  + # Locate Pike binary.   pike=`type pike|head -1|sed -e 's,.*is ,,'`   if [ -x bin/pike ] ; then pike=$roxendir/bin/pike; fi   if [ -x bin/roxen ] ; then pike=$roxendir/bin/roxen; fi   if [ -x $LOCALDIR/bin/pike ] ; then pike=$LOCALDIR/bin/pike; fi   if [ -x $LOCALDIR/bin/roxen ] ; then pike=$LOCALDIR/bin/roxen; fi   if [ "x$PIKE" = "x" ]; then :; else    if [ -x "$PIKE" ]; then pike="$PIKE"; fi   fi         if [ x"$pike" = "x" ] ; then    echo "No pike binary found. Aborting."    exit 1   fi      if [ ! -f "$pike" ] ; then    echo "No pike binary found. Aborting."    exit 1   fi    -  + # If environment file doesn't exist, try to create it. + if +  test ! -f $LOCALDIR/environment +  test -f bin/buildenv.pike + then +  $pike bin/buildenv.pike + fi +  + # Set up environment + if test -f $LOCALDIR/environment; then +  . $LOCALDIR/environment + fi +  + # Make sure $CLASSPATH contains the servlet stuff + CLASSPATH=java/classes/roxen_module.jar:java/classes/roxen_servlet.jar:java/classes/servlet.jar:java/classes${CLASSPATH:+:}$CLASSPATH + export CLASSPATH +  +    ####### BEGIN ARGUMENT PARSING         DEFINES="$DEFINES -DKEEP_ALIVE"      # 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 [ $verbose -gt 0 ] ; then
Roxen.git/server/start:490:    cd $cd_to    fi    if [ "x$gdb" = "xno" ]; then    if [ $verbose -gt 0 ]; then    if [ $verbose -gt 1 -o -z "$once" ] ; then    echo "$pre" "Executing $pike $args $@"|sed -e "s!`pwd`!.!g"    else    echo "$pre" "Using '$pike'"|sed -e "s!`pwd`!.!g"    fi    fi -  args="-DSERIOUS $args" +  #args="-DSERIOUS $args"    $pike $args $@    else    echo "$pre" Executing gdb $pike $args $@    args="-DSERIOUS $args"    echo >.gdbinit handle SIGPIPE nostop noprint pass    echo >>.gdbinit handle SIGUSR1 nostop noprint pass    echo >>.gdbinit handle SIGUSR2 nostop noprint pass    echo >>.gdbinit handle SIGLWP nostop noprint pass    echo >>.gdbinit run $args $@    gdb $pike