Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.198 2002/06/14 16:05:02 jhs Exp $ + # $Id: start,v 1.199 2002/10/01 23:18:16 nilsson Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.      if [ "x$1" = "x--silent-start" ] ; then    SILENT_START="y"    shift   fi      check_owner() {
Roxen.git/server/start:57:    fi    ;;   esac      . bin/functions      # Can be set with '--config-dir=DIR'   DIR=../configurations   LOGDIR=../logs   FILES="default" - program=base_server/roxenloader.pike + program=server_core/roxenloader.pike   VARDIR=../var   LOCALDIR=../local   SELF_TEST_DIR=data/test      # Make LOCALDIR an absolute path   if test -d $LOCALDIR/.; then    LOCALDIR="`cd $LOCALDIR; pwd`"   else :; fi      if test -d $VARDIR/.; then :; else
Roxen.git/server/start:290:    ARGS="$ARGS $1"    ;;    -D*|-M*|-I*|-P*)    # Argument passed along to Pike.    DEFINES="$DEFINES $1"    ;;    '--version')    if [ "x$passhelp" = "x1" ] ; then    pass="$pass --version"    else -  if [ -f base_server/roxen.pike ]; then +  if [ -f server_core/roxen.pike ]; then    echo "Internet Server `roxen_version`"    exit 0    else -  echo 'base_server/roxen.pike not found!' +  echo 'server_core/roxen.pike not found!'    exit 1    fi    fi    ;;    --self-test-dir=*)    SELF_TEST_DIR=`echo $1 | sed -e's/--self-test-dir=//'`    ;;    '--self-test')    setup_for_tests    ;;
Roxen.git/server/start:559:    fi   fi      # Extra module-path   DEFINES="$DEFINES \"-M$roxendir/pike_modules\""      # Extra include-path   DEFINES="$DEFINES \"-I$roxendir/data/include\""      # Extra program-path - DEFINES="$DEFINES \"-Pbase_server\" \"-P`pwd`\"" + DEFINES="$DEFINES \"-Pserver_core\" \"-P`pwd`\""      # Support for adding local pike-modules      # Extra module-path   if [ -d "$LOCALDIR/pike_modules/." ]; then    DEFINES="$DEFINES \"-M$LOCALDIR/pike_modules\""   fi      # Extra include-path   if [ -d "$LOCALDIR/include/." ]; then    DEFINES="$DEFINES \"-I$LOCALDIR/include\""   fi         # Extra kludge for HPUX   # HPUX doesn't like group 60001(nobody)   if uname | grep 'HP-UX' >/dev/null 2>&1; then    if [ $verbose -gt 0 ]; then -  dp "WARNING: Applying kludge for HPUX. (see base_server/roxen.pike)" +  dp "WARNING: Applying kludge for HPUX. (see server_core/roxen.pike)"    else :; fi    DEFINES="$DEFINES -DHPUX_KLUDGE"   fi         case "x$debug" in    "x"|"x0")    DEBUG="-DMODULE_DEBUG "    ARGS="$ARGS -w"    ;;
Roxen.git/server/start:761:    else false; fi    } < "$pidfile" && exit 1    # Minor race here.    { echo "x" && echo $mypid; } > "$pidfile"    trap cleanup_pid_file 0   fi      PIKEVERSION="`\"$pike\" --version 2>&1|head -1`"   LS="`ls -lL \"$pike\" 2>/dev/null`"   LS="$LS `find pike_modules -ls 2>/dev/null`" - LS="$LS `find base_server -ls 2>/dev/null`" + LS="$LS `find server_core -ls 2>/dev/null`"      VERSION_DATA="$PIKEVERSION $DEFINES $LS"    - if [ "$program" = "base_server/roxenloader.pike" ] ; then + if [ "$program" = "server_core/roxenloader.pike" ] ; then    if [ "`cat \"$old_roxen_defines\" 2>/dev/null`" != "$VERSION_DATA" ] ; then    remove_old_dot_o_files "defines or pike version changed"    fi    echo "$VERSION_DATA" > "$old_roxen_defines"   fi      if [ -z "$once" ] ; then    if [ $verbose -gt 0 ]; then    dp "Starting the Internet Server."    else :; fi