Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.162 2001/06/09 14:55:09 nilsson Exp $ + # $Id: start,v 1.163 2001/06/20 11:53:12 noring 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:89:      # Do not default to using a relative path.   roxendir="`pwd`"      # Locate Pike binary.   find_pike      # Source environment   setup_environment    -  +    ####### BEGIN ARGUMENT PARSING         DEFINES="$DEFINES -DRAM_CACHE"      # 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
Roxen.git/server/start:592:    raise_limit       if [ x$remove_dumped = x1 ] ; then    remove_old_dot_o_files "user request"    fi    if [ x$DIR != x../configurations ] ; then    args="$DEFINES $ARGS $program --config-dir=$DIR $pass"    else    args="$DEFINES $ARGS $program $pass"    fi -  if [ x$cd_to != x ] ; then -  cd $cd_to +  if [ x"$cd_to" != x ] ; then +  cd "$cd_to"    fi    if [ "x$gdb" = "xno" ]; then    if [ $verbose -gt 0 ]; then    if [ $verbose -gt 1 -o -z "$once" ] ; then    dp Executing $pike $args|sed -e "s!`pwd`!.!g"    else    dp "Using the '$pike' pike binary"|sed -e "s!`pwd`!.!g"    fi    fi       if [ "x$once" = "x" ]; then -  $pike $args 2>>"${DEBUGLOG}.1" 1>&2 & +  "$pike" $args 2>>"${DEBUGLOG}.1" 1>&2 &    ROXEN_PID=$!    dp "Roxen WebServer server pid $ROXEN_PID."    wait $! 2>/dev/null 1>&2    exitcode="$?"    ROXEN_PID=""    else    if [ "x$do_pipe" = "x" ] ; then -  $pike $args 2>&1 +  "$pike" $args 2>&1    exitcode="$?"    else    trap exit_fail 1    eval "($pike $args || kill -1 $$) 2>&1 $do_pipe"    exit $exitcode    fi    fi    else    echo >.gdbinit handle SIGPIPE nostop noprint pass    echo >>.gdbinit handle SIGUSR1 nostop noprint pass
Roxen.git/server/start:787:    fi       # Try to get rid of some fd's.    # Some /bin/sh's have problems detaching otherwise.       exec >/dev/null    exec </dev/null   else    start_roxen   fi +