Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.74 1999/09/05 01:34:43 per Exp $ + # $Id: start,v 1.75 1999/09/05 02:19:34 per 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:116:    '--keep-alive'|'--with-keep-alive'|'--enable-keep-alive')    DEFINES="-DKEEP_ALIVE $DEFINES"    ;;    '--quiet'|'-q')    verbose=0    ;;    '--verbose'|'-v')    verbose=2    debug=1    ;; +  '--remove-dumped') +  remove_old_dot_o_files "user request" +  ;;    '--once')    once=1    ;;   # Misspelling --once might give undesirable results, so let's accept   # some "creative" spellings... :-)    '--onve'|'--onec'|'--onev')    once=1    ;;    '--gdb')    gdb=gdb
Roxen.git/server/start:168:      The environment variable .BROXEN_ARGSB. can be used to specify   the default arguments.       .BArguments:B.       .B--versionB.: Output version information.       .B--help -?B.: This information.    +  .B--remove-dumpedB.: Remove all dumped code, thus forcing +  a recompile. +     .B--verbose -vB.: Enable more verbose messages.       .B--quiet -qB.: Disable most of the messages.       .B--log-dir=DIRB.: Set the log directory. Defaults to .B../logsB..       .B--config-dir=DIRB.: Use an alternate configuration directory.    Defaults to .B../configurationB..       .B--with-threadsB.: If threads are available, use them.
Roxen.git/server/start:375:    DEFINES="$DEFINES -DHPUX_KLUDGE"   fi      ####### END PIKE OPTIONS         #   # Some useful functions   #    + remove_old_dot_o_files () { +  echo "$pre Removing old .o files ($1)" +  find . -name '*.o' | xargs rm -f + } +  +    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() {    if [ "x$DIR" != "x../configurations/" ] ; then -  args="$DEBUG $DEFINES $program --config-dir=$DIR $pass" +  args="$DEFINES $program --config-dir=$DIR $pass"    else -  args="$DEBUG $DEFINES $program $pass" +  args="$DEFINES $program $pass"    fi    if [ x$cd_to != x ] ; then    cd $cd_to    fi    if [ "x$gdb" = "xno" ]; then    if [ $verbose -gt 0 ]; then    echo "$pre Executing $pike $args $@"|sed -e "s!`pwd`!.!g"    else :; fi    $pike $args $@    else
Roxen.git/server/start:419:   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 [ "`cat .old_roxen_defines 2>/dev/null`" != "$PIKEVERSION $DEFINES" ] ; then +  remove_old_dot_o_files "DEFINES changed" + fi +  + echo "$PIKEVERSION $DEFINES" > .old_roxen_defines +    if [ -z "$once" ] ; then    if [ $verbose -gt 0 ]; then    echo $pre Starting the Roxen Challenger World Wide Web server.    else :; fi    ./mkdir -p $LOGDIR/debug/       if [ $verbose -gt 0 ]; then    cat << oo   Using configuration from $DIR, storing the debug log in $LOGDIR/debug/$FILES.1   You can use the configuration interface in the server to get debug info.