Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.197 2002/12/16 14:37:52 grubba Exp $ + # $Id: start,v 1.198 2003/01/13 15:14:08 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:126:    elif uname -r | grep '^[5-9]' >/dev/null 2>&1; then    DEFINES="$DEFINES -DENABLE_THREADS"    fi   fi   # Also enabled on Linux.   if uname | grep 'Linux' >/dev/null 2>&1; then    DEFINES="$DEFINES -DENABLE_THREADS"   fi      gdb=no + truss=      remove_dumped_passed=no   remove_old_dot_o_files () {    dp "Removing old precompiled files ($1)"    # This really cannot be done from here anymore -- pass on an option    # to roxenloader instead.       # Make sure that the argument isn't duplicated for every restart...    if [ "x$remove_dumped_passed" = "xyes" ]; then :; else    pass="$pass --remove-dumped"
Roxen.git/server/start:171:   parse_args() {    while [ ! c"$1" = "c" ] ; do    case "$1" in    -D*)    DEFINES="$DEFINES $1"    ;;    -l*)    ARGS="$ARGS $1"    ;;    --truss) -  pike="truss $pike" +  truss="truss"    ;;    --truss-c) -  pike="truss -c $pike" +  truss="truss -c"    ;; -  +  --strace) +  truss="strace" +  ;;    --log-dir=*)    LOGDIR=`echo $1 | sed -e 's/--log-dir=//'`    ;;    --debug-log=*)    DEBUGLOG=`echo $1 | sed -e's/--debug-log=//'`    ;;    --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'`    ;;
Roxen.git/server/start:703:       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 \"$pike\" $args 2>&1" +  eval "fork_roxen $truss \"$pike\" $args 2>&1"    wait $ROXEN_PID 2>/dev/null 1>&2    exitcode="$?"    ROXEN_PID=""    else -  eval "\"$pike\" $args" 2>&1 +  eval "$truss \"$pike\" $args" 2>&1    exitcode="$?"    fi    else    trap exit_fail 1 -  eval "(eval \"\\\"$pike\\\" $args\" || kill -1 $$) 2>&1 $do_pipe" +  eval "(eval \"$truss \\\"$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    echo >>.gdbinit handle SIGUSR2 nostop noprint pass    echo >>.gdbinit handle SIGLWP nostop noprint pass    if uname | grep 'Linux' >/dev/null 2>&1; then    echo >>.gdbinit handle SIG38 nostop noprint pass