Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.195 2002/06/03 20:36:10 per Exp $ + # $Id: start,v 1.196 2002/06/05 00:13:51 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:553:    # This is useful when using several different Pikes.    # Specify include and module paths with    # PIKE_INCLUDE_PATH and PIKE_MODULE_PATH    # they are handled automatically by the master,    # so no need to do it here.    DEFINES="$DEFINES \"-m$PIKE_MASTER\""    fi   fi      # Extra module-path - #if [ -d etc/modules ]; then -  DEFINES="$DEFINES \"-M$roxendir/etc/modules\"" - #fi + DEFINES="$DEFINES \"-M$roxendir/pike_modules\""      # Extra include-path - #if [ -d etc/include ]; then +    DEFINES="$DEFINES \"-I$roxendir/etc/include\"" - #fi +     - if [ -d "$LOCALDIR/include/." ]; then -  DEFINES="$DEFINES \"-I$LOCALDIR/include\"" - fi -  - # Extra include-path (2) - #if [ -d base_server ]; then -  DEFINES="$DEFINES \"-I$roxendir/base_server\"" - #fi -  - if [ -d "$LOCALDIR/base_server/." ]; then -  DEFINES="$DEFINES \"-I$LOCALDIR/base_server\" \"-P$LOCALDIR/base_server\"" - fi -  +    # Extra program-path - DEFINES="$DEFINES \"-P`pwd`\"" + DEFINES="$DEFINES \"-Pbase_server\" \"-P`pwd`\""      # Support for adding local pike-modules - if [ -d "$LOCALDIR/etc/." ]; then +    # Extra module-path -  if [ -d "$LOCALDIR/etc/modules/." ]; then -  DEFINES="$DEFINES \"-M$LOCALDIR/etc/modules\"" + if [ -d "$LOCALDIR/pike_modules/." ]; then +  DEFINES="$DEFINES \"-M$LOCALDIR/pike_modules\""   fi      # Extra include-path -  if [ -d "$LOCALDIR/etc/include/." ]; then -  DEFINES="$DEFINES \"-I$LOCALDIR/etc/include\"" + if [ -d "$LOCALDIR/include/." ]; then +  DEFINES="$DEFINES \"-I$LOCALDIR/include\""   fi    -  # Extra program-path -  DEFINES="$DEFINES \"-P$LOCALDIR/etc\"" - 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)"    else :; fi    DEFINES="$DEFINES -DHPUX_KLUDGE"   fi   
Roxen.git/server/start:780:    else false; fi    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 etc/modules -ls 2>/dev/null`" + LS="$LS `find pike_modules -ls 2>/dev/null`"   LS="$LS `find base_server -ls 2>/dev/null`"      VERSION_DATA="$PIKEVERSION $DEFINES $LS"      if [ "$program" = "base_server/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