Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.97 2000/02/29 22:52:32 peter Exp $ + # $Id: start,v 1.98 2000/03/10 18:07:22 mast 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:54:   ####### 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 -  echo "$pre Solaris 2.5 or later detected. Enabling threads (if available)." +  echo "$pre Solaris 2.5 or later detected. Defaulting to enabled threads."    fi -  DEFINES="$DEFINES -DENABLE_THREADS -DTHREADS" +  DEFINES="$DEFINES -DENABLE_THREADS"    fi   fi      gdb=no      remove_old_dot_o_files () {    echo "$pre Removing old .o files ($1)"    find $pcdir -name '*.o' | xargs rm -f   }   
Roxen.git/server/start:114:    '--fd-debug'|'--with-fd-debug'|'--enable-fd-debug')    DEFINES="-DFD_DEBUG $DEFINES"    ;;    '--dump-debug'|'--with-dump-debug'|'--enable-dump-debug')    DEFINES="-DDUMP_DEBUG $DEFINES"    ;;    '--threads'|'--with-threads'|'--enable-threads')    DEFINES="-DENABLE_THREADS $DEFINES"    ;;    '--no-threads'|'--without-threads'|'--disable-threads') -  DEFINES="`echo $DEFINES | sed -e 's/-DENABLE_THREADS//'`" +  DEFINES="`echo $DEFINES | sed -e 's/-DENABLE_THREADS//g'`"    ;;    '--no-keep-alive'|'--without-keep-alive'|'--disable-keep-alive') -  DEFINES="`echo $DEFINES | sed -e 's/-DKEEP_ALIVE//'`" +  DEFINES="`echo $DEFINES | sed -e 's/-DKEEP_ALIVE//g'`"    ;;    '--with-profile'|'--profile')    DEFINES="-DPROFILE $DEFINES"    ;;    '--with-file-profile'|'--file-profile')    DEFINES="-DPROFILE -DFILE_PROFILE $DEFINES"    ;;    '--keep-alive'|'--with-keep-alive'|'--enable-keep-alive')    DEFINES="-DKEEP_ALIVE $DEFINES"    ;;
Roxen.git/server/start:475:    fi    fi    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    rm .gdbinit    fi   }      #   # Now do the stuff   #   PIKEVERSION=`$pike --version 2>&1`