Skip to content

Conversation

dconlon
Copy link
Contributor

@dconlon dconlon commented Oct 9, 2025

emonhub tries to load available.conf from the fixed path /opt/openenergymonitor/emonhub/conf/available.conf even when autoconf = 0, resulting in an error being logged and sys.exit being called. sys.exit exits the main thread but not the emonhub process leaving the interfacer threads running without any main thread to transfer packets over the message bus between them.

These commits attempt to load available.conf only when autoconf is enabled and where autoconf is enabled and available.conf cannot be loaded ensures the whole process exits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant