Branch: Tag:

2001-02-02

2001-02-02 13:03:44 by Per Hedbor <ph@opera.com>

Set the exit code correctly when running --once, and added a missing &

Rev: server/start:1.151

1:   #!/bin/sh   # - # $Id: start,v 1.150 2001/02/02 12:08:24 noring Exp $ + # $Id: start,v 1.151 2001/02/02 13:03:44 per Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.
589:    trap signal_exit 2 15    trap "" 1    if [ "x$once" = "x" ]; then -  $pike $args "$@" 2>>$LOGDIR/debug/$FILES.1 1>&2 +  $pike $args "$@" 2>>$LOGDIR/debug/$FILES.1 1>&2 &    ROXEN_PID=$!    dp "Roxen WebServer server pid $ROXEN_PID."    wait $! 2>/dev/null 1>&2    exitcode="$?" -  + echo "Exitcode = $exitcode"    ROXEN_PID=""    else    if [ "x$do_pipe" = "x" ] ; then    $pike $args "$@" 2>&1 -  +  exitcode="$?"    else    trap exit_fail 1    eval "($pike $args \"$@\" || kill -1 $$) 2>&1 $do_pipe"