Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:108:    if uname -r | grep '5\.[5-9]' >/dev/null 2>&1; then   # if [ $verbose -gt 0 ] ; then   # dp "Solaris 2.5 or later detected. Using threads by default."   # fi    DEFINES="$DEFINES -DENABLE_THREADS"    fi   fi      gdb=no    + daemonize=yes +    remove_old_dot_o_files () {    dp "Removing old precompiled files ($1)"    # This really cannot be done from here anymore -- pass on an option    # to roxenloader instead.    pass="$pass --remove-dumped"   }      ## Parse all arguments.   ## GNU-style, long options only, except for -D, simply passed on.   ARGS=""
Roxen.git/server/start:195:    ;;    '--no-threads'|'--without-threads'|'--disable-threads')    DEFINES="`echo $DEFINES | sed -e 's/-DENABLE_THREADS//g'`"    ;;    '--with-profile'|'--profile')    DEFINES="-DPROFILE $DEFINES"    ;;    '--with-file-profile'|'--file-profile')    DEFINES="-DPROFILE -DFILE_PROFILE $DEFINES"    ;; +  '--without-daemon'|'--without-deamonize') +  daemonize=no +  ;;    '--quiet'|'-q')    verbose=0    ;;    '--verbose'|'-v')    verbose=2    debug=1    ;;    '--remove-dumped')    remove_dumped=1;    ;;
Roxen.git/server/start:301:       .B--debug-log=FILEB.: Use an alternate debuglog file.    Defaults to .B../logs/debug/B.configdirname.B.1B..       .B--pid-file=FILEB.: Store the roxen and startscript pids in this    file. Defaults to .B../configurations/_roxen_pidB..       .B--silent-startB.: Inhibits output to stdout. If used,    this argument must be the first one.    +  .B--without-daemonB.: Do not detach from the started server. +  This is typically used with launchd. +     .B--without-ram-cacheB.: Do not use an in-RAM cache to speed    things up. Saves RAM at the cost of speed.       .B--without-ram-cache-statB.: Disable the stat that is usualy done    for files in the ram cache to ensure that    they are not changed before they are sent.    Improves performance at the cost of constant    aggravation if the site is edited. Useful for    truly static sites.   
Roxen.git/server/start:763:    esac    fi    done    ) &    # Minor race here wrt pid file contents.    pid=$!    trap "" 0    [ -z "$pidfile" ] || { echo "x" && echo $pid; } > $pidfile    dp "Forked start script, pid $pid." 2>&3    dp "Start script pid $pid." +  +  if test "x$daemonize" = "xyes"; then :; else +  trap "stop_roxen $pid TERM start \"$canonicalconf\" \"start script\"" 2 15 +  wait; +  signal_exit +  fi    ) 3>&2 </dev/null >"$DEBUGDIR/start_$FILES.output" 2>&1; then    trap "" 0    :    else    dp 'Failed to spawn subshell. -- Permission problem?'    exit 1    fi       # Try to get rid of some fd's.    # Some /bin/sh's have problems detaching otherwise.       exec >/dev/null    exec </dev/null   else    start_roxen   fi