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= + module_hot_reload_conf= +    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:220:    fi   }      setup_for_tests() {    # Kill roxen mysql if it's running...    if [ -f "$VARDIR/test_config/_mysql/mysql_pid" ] ; then    kill `cat "$VARDIR/test_config/_mysql/mysql_pid"`    fi    self_test=y    DEFINES="-DRUN_SELF_TEST -DSELF_TEST_DIR=\"$SELF_TEST_DIR\" $DEFINES" +  DEFINES="$DEFINES \"-M$SELF_TEST_DIR/modules\""    rm -rf "$VARDIR/test_config"*    DIR="$VARDIR/test_config"    if [ -f "$SELF_TEST_DIR/scripts/setup.pike" ] ; then    eval "\"$pike\" $PIKEARGS $DEFINES \"$SELF_TEST_DIR/scripts/setup.pike\" \"$SELF_TEST_DIR\" \"$VARDIR\""    fi    once=${once:-1}    debug=1    #remove_dumped=1   }   
Roxen.git/server/start:331:    ;;    '--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" +  ;; +  --module-hot-reload-conf=*) +  mod=`echo $1 | sed -e 's/--module-hot-reload-conf=//'` +  module_hot_reload_conf="$mod $module_hot_reload_conf" +  ;;    '--quiet'|'-q')    verbose=0    ;;    '--verbose'|'-v')    verbose=2    debug=1    ;;    '--remove-dumped')    remove_dumped=1;    ;;
Roxen.git/server/start:563:    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--module-hot-reload-conf=<conf>B. +  Set for which configuration .B--module-hot-reloadB. +  should be applied. By default all module instances +  in all configurations will be hot-reloaded. +     .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:1122:   # 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 +  if [ "x$module_hot_reload_conf" != "x" ]; then +  pass="$pass --module-hot-reload-conf=\"$module_hot_reload_conf\"" +  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