Branch: Tag:

2018-04-17

2018-04-17 19:52:04 by Pontus Östlund <ponost@roxen.com>

Added module hot reload as start flag.

./start --once --module-hot-reload=module1 --module-hot-reload=module2 ...

Note that the module will be reloaded in all configurations it resides.

147:      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
339:    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    ;;
571:    .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.
1130:    # 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