This program is configured at compile time.
- If you are including this in a larger codebase, it is recommend you copy this source directly into your source tree.
- Edit
config.hto customise. - Compile using your favourite C compile:
cc simple-supervisor.c -o simple-supervisor - Simply run the resulting binary in whatever context you want the process tree to spawn.
The goal is to support all modern Linux and BSD environments. "Bare metal" and Docker are reasonable places to run this program.
The developer has tested on Debian Linux and OpenBSD. Feel free to send patches for other UNIX-like operating systems if necessary.
GCC and LLVM/Clang should compile this program without errors and warnings, under standard configuration. Support for other compilers is unknown.
Only a standard C library with normal UNIX system headers are required.