3 releases

Uses old Rust 2015

0.1.2 Apr 4, 2017
0.1.1 Apr 4, 2017
0.1.0 Apr 4, 2017

#970 in Unix APIs

BSD-2-Clause

9KB
138 lines

Simple Init (sinit)

Simple Init is a simple init system written in Rust that proxies syscalls to its child process(es).

It was mostly written as a learning exercise, but may actually be useful in the real world too… because Linux treats PID1 as a special snowflake, when you run your applications in a Docker container (as PID1) it's possible that if they ever call fork(3) and then the parent process dies you'll end up with a zombie container (because there's nothing to manage the child processes anymore). Instead, you could use sinit as the entry point for your container and then if the child process dies sinit will clean up for you.

Dependencies

~485KB