aurae icon indicating copy to clipboard operation
aurae copied to clipboard

POSIX Signal Handler and Proxy/Bus

Open krisnova opened this issue 1 year ago • 2 comments

Now that auraed is launching nested versions of itself, we will need to proxy POSIX signals through auraed

  1. 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

  1. Use SIGINT instead of SIGKILL to "free" a nested auraed after the signal handler has been implemented.

  2. 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!

krisnova avatar Dec 27 '22 19:12 krisnova