The TurnKey init-fence (part of inithooks) is not working.
Part of the issue is that the default config file uses bash arrays but the EnvironmentFile in the service is loaded as a string. That has been addressed in turnkeylinux/inithooks#70.
The other part of the issue is that simplehttpd.py (minimalist web server which serves the page displayed when the fence is enabled) is being called. I had a quick look at that, but simplehttpd.py doesn't work as I expected.
Further consideration makes me inclined to refactor the whole thing and combine all functionality into a single script (i.e. the init-fence executable and the simplehttpd.py script). AFAIK we aren't using simplehttpd.py anywhere else so that probably makes sense?
The TurnKey
init-fence(part ofinithooks) is not working.Part of the issue is that the default config file uses bash arrays but the
EnvironmentFilein the service is loaded as a string. That has been addressed in turnkeylinux/inithooks#70.The other part of the issue is that
simplehttpd.py(minimalist web server which serves the page displayed when the fence is enabled) is being called. I had a quick look at that, butsimplehttpd.pydoesn't work as I expected.Further consideration makes me inclined to refactor the whole thing and combine all functionality into a single script (i.e. the init-fence executable and the simplehttpd.py script). AFAIK we aren't using simplehttpd.py anywhere else so that probably makes sense?