Skip to content
Snippets Groups Projects
Commit 90276394 authored by Erik von Reis's avatar Erik von Reis
Browse files

python3-rtcds: fixed epics only models in the case where rtsystab is used

parent d64dea6d
No related branches found
No related tags found
1 merge request!188Front end systemd generator
......@@ -200,6 +200,7 @@ WantedBy=multi-user.target
os.makedirs(override_path, exist_ok=True)
conf_path = path.join(override_path, f"wants_{unit_name}.conf")
with open(conf_path, "wt") as f:
f.write(gen_disclaimer)
f.write(f"""[Unit]
Wants={unit_name}""")
......
......@@ -50,6 +50,11 @@ def get_options():
else:
options[name] = var.default
if options['IOP_MODEL'] in options['EPICS_ONLY_MODELS']:
options['IOP_MODEL'] = None
options['USER_MODELS'] = [m for m in options['USER_MODELS']
if m not in options['EPICS_ONLY_MODELS']]
options['HAS_DOLPHIN_PORT'] = path.exists('/etc/dolphin_ix_port_ctl.sh')
options['HAS_EPICS_ONLY_MODELS'] = 'EPICS_ONLY_MODELS' in options and len(options['EPICS_ONLY_MODELS']) > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment