Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.201 2003/03/03 16:58:50 mast Exp $ + # $Id: start,v 1.202 2003/03/25 14:00:22 mast 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:670:    exit 0   }      exit_fail() {    exitcode=1   }      # This is a trick to get $ROXEN_PID and arguments containing spaces   # correct at the same time.   fork_roxen() { +  if [ $verbose -gt 0 ]; then +  dp "Server start command:" +  for arg +  do +  dp " $arg" +  done +  fi    "$@" &    ROXEN_PID=$!   }      start_roxen() {    check_owner    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='`echo \"$DIR\" | sed -e \"s/'/'\\\"'\\\"'/g\"`' $pass"    else    args="$DEFINES $ARGS $program $pass"    fi    if [ x"$cd_to" != x ] ; then    cd "$cd_to"    fi    if [ "x$gdb" = "xno" ]; then -  +  if [ "x$once" = "x" ]; 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 +     eval "fork_roxen \"$pike\" $args 2>>\"${DEBUGLOG}.1\" 1>&2"    dp "Roxen WebServer server pid $ROXEN_PID."    wait $ROXEN_PID 2>/dev/null 1>&2    exitcode="$?"    ROXEN_PID=""    else    if [ "x$do_pipe" = "x" ] ; then    if [ "x$once" = "x1" ]; then    eval "fork_roxen $truss \"$pike\" $args 2>&1"    wait $ROXEN_PID 2>/dev/null 1>&2