mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 12:39:23 -05:00
Make synctl read a cache factor from config file
This commit is contained in:
parent
c0112fabc2
commit
c5c5a7403b
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user