Branch: Tag:

1997-01-27

1997-01-27 00:05:59 by Per Hedbor <ph@opera.com>

Added support for --debug

Rev: server/start:1.3

51:    DIR=`echo $1 | sed -e 's/--config-dir=//'`    FILES=`echo $1 | sed -e 's/--config-dir=//' -e 's/..//' -e 's./..g' -e 's.-..g'`    ;; +  '--debug') +  debug=1 +  ;;    '--once')    once=1    ;;
86:   if [ "$NOCHOWN" != "TRUE" ]; then    fixperms 2>/dev/null   fi + if [ -z "$debug" ] ; then +  DEBUG=""; + else +  DEBUG="-DDEBUG -DMODULE_DEBUG" + fi +    if [ -z "$once" ] ; then    (while : ; do    sdfile="/tmp/Roxen_Shutdown_$$"
109:       echo "Server restart at `date`"    rotate $LOGDIR/debug/$FILES -  args="-DROXEN roxenloader --config-dir=$DIR --start-script-pid=$$" +  args="-DROXEN $DEBUG roxenloader --config-dir=$DIR --start-script-pid=$$"    echo Executing $ulpc -m etc/master.pike $args $@ 2>$LOGDIR/debug/$FILES.1    $ulpc -m etc/master.pike $args $@ 2>>$LOGDIR/debug/$FILES.1 1>&2    if [ -z "$noshutdown" ] ; then
145:   oo   else    echo "Server restart at `date`" -  args="-DROXEN roxenloader --config-dir=$DIR --start-script-pid=$$" +  args="-DROXEN $DEBUG roxenloader --config-dir=$DIR --start-script-pid=$$"    echo Executing $ulpc -m etc/master.pike $args $@    $ulpc -m etc/master.pike $args $@   fi