4 ms·
Most likely. It can even run as an unprivileged user (and users can manage their own daemons with it). Though in most cases I find that people just want the "z
by cyphar 9y ago
Most likely. It can even run as an unprivileged user (and users can manage their own daemons with it).
Though in most cases I find that people just want the "zombie problem" to go away. I wrote a simple init[1] that implements all of the key pieces of an init and signal forwarder.
[1]: https://github.com/cyphar/initrs https://github.com/cyphar/initrs
- majewsky 9y agoI see you mentioned tini (another such init) in the README as being "not as simple as it should be". We're using https://github.com/Yelp/dumb-init https://github.com/Yelp/dumb-init at work; if you know it, what do you think of it?
- cyphar 9y agodumb-init is better, but they don't use socketfd which means they might drop signals in certain cases (in the race between consecutive sigwaits). I will concede this is a minor point, and I still have to finish implementing all of the necessary signal semantics in initrs, but it is kinda important. Also I'm learning Rust and it was a good opportunity to practice by implementing something I already knew how to easily do in C.
- talideon 9y agoAny reason you didn't go with something like dumb-init[1]? [1] https://github.com/Yelp/dumb-init https://github.com/Yelp/dumb-init
- cyphar 9y agoSee https://news.ycombinator.com/item?id=14478725 https://news.ycombinator.com/item?id=14478725