aurae
aurae copied to clipboard
POSIX Signal Handler and Proxy/Bus
Now that auraed
is launching nested versions of itself, we will need to proxy POSIX signals through auraed
- Implement a POSIX compliant signal handler in Rust in Auraed and provide documentation on which signals map to what behavior.
SIGKILL
should terminate (kill) the process
SIGHUP
should reload the config from disk and reopen logfiles
SIGINT
should "interrupt" the process and begin to "die nice" ensuring any cleanup logic can be done
-
Use
SIGINT
instead ofSIGKILL
to "free" a nested auraed after the signal handler has been implemented. -
Proxy all signals to nested executables for them to manage independently.
For example sending a SIGHUP
to a nested auraed
should proxy a SIGHUP
to all of the nested executables!