I'm actually working on a modular system with multiple services. In this system, I already have a configuration file and I would like to use this configuration file to enable or disable some services running with systemd. The configuration file could contain something like that:
... [ServiceEnable] Service1Enable=True Service2Enable=False Service3Enable=True ...
At first I just thought of another service parsing my configuration file and creating little files depending of the configuration so my services could use the ConditionPathExists parameter but I don't find this solution elegant.
Is there other way to dynamically enable or disable some services with the help of my configuration files?