Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:140:   DEFINES="$DEFINES -DRAM_CACHE -DHTTP_COMPRESSION"      gdb=no   valgrind=   truss=      daemonize=yes      remove_dumped_passed=no    + module_hot_reload= +    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.       # Make sure that the argument isn't duplicated for every restart...    if [ "x$remove_dumped_passed" = "xyes" ]; then :; else    pass="$pass --remove-dumped"    remove_dumped_passed=yes    fi
Roxen.git/server/start:332:    ;;    '--generations')    GENERATIONS="$2"    shift    if test "$GENERATIONS" -gt 1; then :; else    echo "Invalid number of log generations: $GENERATIONS" >&2    echo "Using default: 5" >&2    GENERATIONS=5    fi    ;; +  --module-hot-reload=*) +  if test "x$module_hot_reload" = "x"; then +  DEFINES="-DMODULE_HOT_RELOAD $DEFINES" +  fi +  mod=`echo $1 | sed -e 's/--module-hot-reload=//'` +  module_hot_reload="$mod $module_hot_reload" +  ;;    '--quiet'|'-q')    verbose=0    ;;    '--verbose'|'-v')    verbose=2    debug=1    ;;    '--remove-dumped')    remove_dumped=1;    ;;
Roxen.git/server/start:564:    start the installation program normally    started with .B./installB.       .B--with-debugB.: Enable debug       .B--without-debugB.: Disable all debug. This is the default.       .B--module-debugB.: Enable more internal debug checks to    simplify debugging of Roxen modules.    +  .B--module-hot-reload=<module-name>B. +  Enable hot reload of .B<module-name>B.. The module +  will be reloaded whenever the file is saved. +  NOTE! This should ONLY be used in a development +  environment. This flag can appear more than once. +  .B<module-name>B. is the filename minus the extension +  of the module. +     .B--mysql-log-queriesB.: Instruct the MySQL server to log all    queries so that they end up in the Roxen    debug log.       .B--fd-debugB.: Enable FD debug.       .B--dump-debugB.: Enable dump debug.       .B--trussB.: (Solaris only). Run the server under    truss, shows .BallB. system calls. This is
Roxen.git/server/start:1123:   # Now do the stuff   #      trap signal_exit 2 15   trap "" 1      if [ "$program" = "base_server/roxenloader.pike" ] ; then    # Starting a Roxen server. Fix the pid file.    [ -z "$pidfile" ] && pidfile="${ROXEN_PID_FILE:-$DIR/_roxen_pid}"    pass="$pass --pid-file='`echo \"$pidfile\" | sed -e \"s/'/'\\\"'\\\"'/g\"`'" +  if [ "x$module_hot_reload" != "x" ]; then +  pass="$pass --module-hot-reload=\"$module_hot_reload\"" +  fi    # Check for stop.    if [ "$stop"x != x ]    then    if [ -f "$pidfile" ]; then    if read roxenpid && read scriptpid; then    problems=""    # NB: No need to shut down the start-script    # if we're going to do a restart.    if [ "$start"x = x -a "$stop" = "TERM" ]; then    if stop_roxen "$scriptpid" "TERM" "start" "$canonicalconf" "start script"; then