aurae-runtime / aurae

Distributed systems runtime daemon written in Rust.
https://aurae.io
Apache License 2.0
1.84k stars 89 forks source link

Use `AuraedPath` to contain logic for locating auraed exe #450

Closed future-highway closed 1 year ago

future-highway commented 1 year ago

In #447 @JeroenSoeters points out that we are reading /proc/self/exe too early (/proc may not be mounted, specifically when running as true PID 1).

The approach in this PR consolidates the logic for determining the path to auraed into a AuraedPath where we read /proc/self/exe when needed as opposed to when launching auraed.