Make synctl read a cache factor from config file

pull/785/head
Erik Johnston 2016-05-16 17:01:57 +01:00
parent c0112fabc2
commit c5c5a7403b
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ def main():
config = yaml.load(open(configfile))
pidfile = config["pid_file"]
cache_factor = config.get("synctl_cache_factor", None)
if cache_factor:
os.environ["SYNAPSE_CACHE_FACTOR"] = cache_factor
action = sys.argv[1] if sys.argv[1:] else "usage"
if action == "start":