flake8
passed.
JSHint
passed.
Review Request #9841 — Created March 27, 2018 and submitted
Previously, running
touch config.jsonwould result in the server
reloading, but if the configuratino file was overwritten (say by a text
editor), rb-gateway would crash. Now we have aConfigWatcher
abstraction that wrapsfsnotifyto (1) wait for the file to be written
and (2) re-watch the file. It also provides a utility to force reload
the configuration (which is triggered bySIGHUPcurrently).
touch config.json and saw the config reloaded.config.json and saw the config reloaded (and rb-gateway didkill -sHUP (pgrep rb-gateway) and saw the config reloaded.