Branch: Tag:

2001-03-24

2001-03-24 03:03:19 by Per Hedbor <ph@opera.com>

Fixed [Bug 1394 (#1394)]

Rev: server/start:1.157

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.
702:    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"
720:    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