Closed reynir closed 2 years ago
since albatross_daemon should depend on albatross_console, that shouldn't be an issue? OTOH maybe albatross_daemon should on startup do a mkdir -p
on the required directories!?
The issue seems to be that albatross_daemon depends on albatross_console.socket and not directly on albatross_console.service. Then the socket file is created and albatross_daemon is started but albatross_console.service might not have been started just yet.
Looking at the code it seems albatross-console only touches albatross/fifo/ if prompted by albatross-daemon so I think moving those lines to albatross_daemon.service would fix the issue.
The fifo directory is created (only) by the albatross_console.service systemd script. I am not sure why it is there and not in albatross_daemon.service. https://github.com/roburio/albatross/blob/340f0e4771b57e50f4d7ff63d3115f353db50527/packaging/Linux/albatross_console.service#L15-L17