Commit 7de8c120 authored by Manuela Kuhn's avatar Manuela Kuhn

Fixed config parameters for control server

parent e233f53e
......@@ -401,10 +401,11 @@ class HidraController():
'"commissioning/scratch_bl", "current/raw", '
'"current/scratch_bl", "local"]\n')
f.write("monitored_dir = {0}/data/source\n"
.format(BASEDIR))
f.write('monitored_events = {"IN_CLOSE_WRITE" : [".tif", '
'".cbf", ".nxs"]}\n')
if eventdetector == "inotifyx_events":
f.write("monitored_dir = {0}/data/source\n"
.format(BASEDIR))
f.write('monitored_events = {"IN_CLOSE_WRITE" : [".tif", '
'".cbf", ".nxs"]}\n')
f.write("use_cleanup = False\n")
f.write("action_time = 150\n")
f.write("time_till_closed = 2\n")
......@@ -429,6 +430,7 @@ class HidraController():
.format(current_config["remove_data"]))
f.write("whitelist = {0}\n"
.format(current_config["whitelist"]))
f.write('cleaner_job_con_str = ""')
self.log.info("Started with ext_ip: {0}, event detector: {1},"
" data fetcher: {2}".format(external_ip,
......
......@@ -275,7 +275,7 @@ def argument_parsing():
# check if directories exist
helpers.check_existance(params["log_path"])
if params["monitored_dir"]:
if "monitored_dir" in params:
helpers.check_existance(params["monitored_dir"])
# the subdirs have to exist because handles can only be added to
# directories inside a directory in which a handle was already set,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment