2 ms·
> Also check github for a bunch of repos that contain biolerplate code that is used in most deamons illustrating signal handling, forking, etc.[2] docker-syste
by westurner 7y ago
> Also check github for a bunch of repos that contain biolerplate code that is used in most deamons illustrating signal handling, forking, etc.[2]
docker-systemctl-replacement is a (partial) reimplementation of systemd as one python script that can be run as the init process of a container that's helpful for understanding how systemd handles processes:
https://github.com/gdraheim/docker-systemctl-replacement/blob/master/files/docker/systemctl3.py https://github.com/gdraheim/docker-systemctl-replacement/blo...
systemd is written in C:
https://github.com/systemd/systemd https://github.com/systemd/systemd
> examples of how to write secure code
awesome-safety-critical > Coding Guidelines
https://github.com/stanislaw/awesome-safety-critical/blob/master/README.md#coding-guidelines https://github.com/stanislaw/awesome-safety-critical/blob/ma...