Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.25 1998/02/04 16:10:34 per Exp $ + # $Id: start,v 1.26 1998/03/01 02:42:58 per Exp $      VERSION=201; BETA=.a;      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"    -  + # 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 +  echo 'Solaris 2.5 or later detected. Enabling threads (if available).' +  DEFINES="$DEFINES -DENABLE_THREADS" +  fi + fi +    # Roxen will create files as the initial user,   # which it expects to be able to read as the run-time user.   umask 022      # Pike default Master-program   if [ "x$PIKE_MASTER" = "x" ]; then    if [ -f lib/pike/master.pike ]; then    DEFINES="$DEFINES -mlib/pike/master.pike"    else    # This is used with localinstall
Roxen.git/server/start:43:    DEFINES="$DEFINES -Ibase_server"   fi      # Extra kludge for HPUX   # HPUX doesn't like group 60001(nobody)   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    - # 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 -  echo 'Solaris 2.5 or later detected. Enabling threads (if available).' -  DEFINES="$DEFINES -DENABLE_THREADS" -  fi - 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      rotate () {    b=5;    for a in 4 3 2 1 ; do mv -f $1.$a $1.$b 2> /dev/null; b=$a; done   }   
Roxen.git/server/start:88:    --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'`    ;;    '--debug')    debug=1    ;; +  '--threads') +  DEFINES="-DENABLE_THREADS $DEFINES" +  ;; +  '--no-threads') +  DEFINES="`echo $DEFINES | sed -e 's/-DENABLE_THREADS//'`" +  ;; +  '--profile') +  DEFINES="-DPROFILE $DEFINES" +  ;; +  '--keep-alive') +  DEFINES="-DKEEP_ALIVE $DEFINES" +  ;;    '--once')    once=1    ;;    '--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] + Syntax: $0 [--version] [--config-dir=DIR] [--log-dir=DIR] [-DDEFINE] [--threads] [--no-threads] [--profile] [--keep-alive]   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    ;;