Branch: Tag:

2000-09-01

2000-09-01 12:42:46 by Martin Nilsson <mani@lysator.liu.se>

Annoy people with the full, sillycapsed name

Rev: server/start:1.125

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.
260:    ;;    '--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!'
269:    ;;    '--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.
463:      ####### 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   
573:    sleep 1    done    fi -  dp "Roxen shutdown." +  dp "Roxen WebServer shutdown."    exit 0   }   
603:    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=""
648:      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/   
684:       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    ) &