Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.124 2000/08/31 11:35:00 noring Exp $ + # $Id: start,v 1.125 2000/09/01 12:42:46 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   
Roxen.git/server/start:253:    -r*|-d*|-t*|-l*|-w*)    # Argument passed along to Pike.    ARGS="$ARGS $1"    ;;    -D*|-M*|-I*|-P*)    # Argument passed along to Pike.    DEFINES="$DEFINES $1"    ;;    '--version')    if [ -f base_server/roxen.pike ]; then -  echo "Roxen `roxen_version`" +  echo "Roxen WebServer `roxen_version`"    exit 0    else    echo 'base_server/roxen.pike not found!'    exit 1    fi    ;;    '--help'|'-?')    sed -e "s/\\.B/`tput 'bold' 2>/dev/null`/g" -e "s/B\\./`tput 'sgr0' 2>/dev/null`/g" << EOF - .BThis command will start the Roxen serverB.. + .BThis command will start the Roxen WebServerB..      The environment variable .BROXEN_ARGSB. can be used to specify   the default arguments.       .BArguments:B.       .B--versionB.: Output version information.       .B--help -?B.: This information.   
Roxen.git/server/start:456:         if [ ! "X$pass" = "X" ] ; then set -- $pass ;fi         ####### END ARGUMENT PARSING         ####### BEGIN PIKE OPTIONS    - # Roxen will create files as the initial user, + # Roxen WebServer will create files as the initial user,   # which it expects to be able to read as the run-time user.   umask 022      if [ "x$PIKE_NO_DEFAULT_PATHS" = "x" ]; then    # Pike default Master-program    if [ "x$PIKE_MASTER" = "x" ]; then    if [ -f lib/master.pike ]; then    DEFINES="$DEFINES -m$roxendir/lib/master.pike"    elif [ -f lib/pike/master.pike ]; then    DEFINES="$DEFINES -m$roxendir/lib/pike/master.pike"
Roxen.git/server/start:566:   }      signal_exit() {    dp "Start script terminated."    if [ "x$ROXEN_PID" != "x" ]; then    kill $ROXEN_PID 2>/dev/null    while kill -0 $ROXEN_PID 2>/dev/null; do    sleep 1    done    fi -  dp "Roxen shutdown." +  dp "Roxen WebServer shutdown."    exit 0   }      start_roxen() {    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
Roxen.git/server/start:596:    else    dp "Using '$pike'"|sed -e "s!`pwd`!.!g"    fi    fi       trap signal_exit 2 15    trap "" 1    if [ "x$once" = "x" ]; then    $pike $args "$@" 2>>$LOGDIR/debug/$FILES.1 1>&2 &    ROXEN_PID=$! -  dp "Roxen server pid $ROXEN_PID." +  dp "Roxen WebServer server pid $ROXEN_PID."    wait $! 2>/dev/null 1>&2    exitcode="$?"    ROXEN_PID=""    else    $pike $args "$@" 2>&1    fi    else    echo >.gdbinit handle SIGPIPE nostop noprint pass    echo >>.gdbinit handle SIGUSR1 nostop noprint pass    echo >>.gdbinit handle SIGUSR2 nostop noprint pass
Roxen.git/server/start:641:      if [ "$program" = "base_server/roxenloader.pike" ] ; then    if [ "`cat $old_roxen_defines 2>/dev/null`" != "$PIKEVERSION $DEFINES" ] ; then    remove_old_dot_o_files "defines or pike version changed"    fi    echo "$PIKEVERSION $DEFINES" > $old_roxen_defines   fi      if [ -z "$once" ] ; then    if [ $verbose -gt 0 ]; then -  dp "Starting the Roxen World Wide Web server." +  dp "Starting the Roxen WebServer."    else :; fi    ./mkdir -p $LOGDIR/debug/       if [ $verbose -gt 0 ]; then    dp "Using configuration from $DIR, storing the debug log in $LOGDIR/debug/$FILES.1."    dp "You can use the administration interface in the server to get debug info."    else :; fi       if (    (
Roxen.git/server/start:677:    fi    fi       dp "Server start at `date`"    dp "Debug log in $LOGDIR/debug/$FILES.1"    rotate $LOGDIR/debug/$FILES    start_roxen $extra_args       if [ "$exitcode" -eq "0" ] ; then    # Clean shutdown. -  dp "Roxen shutdown." +  dp "Roxen WebServer shutdown."    exit 0    fi    if [ "$exitcode" -lt "0" ] ; then    # Signal death. -  dp "Roxen died of signal $exitcode. Restarting..." +  dp "Roxen WebServer died of signal $exitcode. Restarting..."    else -  dp "Roxen down. Restarting." +  dp "Roxen WebServer down. Restarting."    fi    done    ) &    dp "Forked start script, pid $!." >&3    ) 3>&1 </dev/null >$LOGDIR/debug/start_$FILES.output 2>&1; then    :    else    dp 'Failed to spawn subshell. -- Permission problem?'    exit 1    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 $extra_args   fi