Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.156 2001/03/23 03:39:52 per Exp $ + # $Id: start,v 1.157 2001/03/24 03:03:19 per 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:695:   if [ -z "$once" ] ; then    if [ $verbose -gt 0 ]; then    dp "Starting the Roxen WebServer."    else :; fi    if [ "x$DEBUGLOG" = "x" ] ; then    DEBUGDIR="$LOGDIR/debug"    DEBUGLOG="$DEBUGDIR/$FILES"    else    DEBUGDIR="`dirname "$DEBUGLOG"`"    fi +  # This duplicate of the logdir creation code is needed, check the +  # redirect below +  if [ ! -d "$DEBUGDIR" ] ; then +  if ./mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else +  dp "Failed to create log directory $DEBUGDIR." +  exit 1 +  fi +  fi    if [ $verbose -gt 0 ]; then    dp "Using configuration from $DIR"    dp "Storing the debug log in ${DEBUGLOG}.1"    dp "You can use the administration interface in the server to see debug info."    else :; fi       if (    (    # Minor race here wrt pid file cleanup.    exec 3>&-    trap signal_exit 2 15    trap "" 1    trap cleanup_pid_file 0       while : ; do    if test -d "$DEBUGDIR/."; then :; else    # Avoid infinite loop if the debug directory is deleted.    # Thanks to Emils Klotins <emils@dot.lv> for reporting it. -  if ./mkdir -p "$DEBUGDIR"; then :; else +  if ./mkdir -p "$DEBUGDIR" 2>/dev/null; then :; else    dp "Failed to create log directory $DEBUGDIR."    exit 1    fi    fi       dp "Server start at `date`"    dp "Debug log in ${DEBUGLOG}.1"    rotate $DEBUGLOG    start_roxen