"Ben Dibell" <thinkingrod...@gmail.com> wrote: > === On Apr 30 14:40:29, thinkingrod...@gmail.com wrote: > === > === BSD has an init system. The source is there. > === > === What exactly is your problem? What do you want to do > === > === with your init that you can't do with the default install? > === > > === > Jan: A lot of things can be done in Epoch easier, actually. Especially > === > status related stuff is quite nice in Epoch, I made sure of it since > I use > === > it a lot. > === > === I still have no idea of what you want to do. > === Can you give a concrete example of what you want to do > === once you replace init with this other thing, and why? > === > === > === Not that I know what init=/bin/sh means, > === > === but how does it make anything simpler? > === > > === > It allows me to use not only any binary as init, but Linux permits > === > executable scripts with a hashbang to be run as init as well. > === > === OK, but _why_ ? > > I'll start by saying that thanks to the help of the folks on this list, I > have resolved the issue and Epoch is now building on OpenBSD and (sorta) > running, though I haven't written a config file so Epoch drops to a shell. > It was indeed to do with login_tty(). I had seen that section of code but > I didn't put the pieces together that it might do what it does. Linux > doesn't need that, so, that's where I got lost. > I appreciate all the help I was given, and I'm sorry if I was a nuisance.
I didn't mean to sound mean, only to emphasize that you are expected to help yourself around here. Just understand the hostility you might get when you claim to have written a great init system that can't write to the console. In any case if you don't yet know all about process groups and sessions and controlling terminals and the rest of the arcana of the Unix process model I recommend you learn. I suppose writing an init system is a valid way to learn. OpenBSD init is about as minimal as it can get so if you don't understand what every line does you try to find out. > Jan, your question: > I started work on an init system of my own to avoid systemd in Linux back > in July 2013. It was designed to be a single-config-file, > no-deps-but-a-kernel, monolithic design, init system. > Epoch has nice status features and provides options nobody else does, but > it's binary is small and the source is not too long. I'm porting it to BSD > for a couple of reasons. > > 1. I found some folks who seem genuinely interested in Epoch on BSD, and > since I was already working on Epoch 1.1, I decided to port Epoch. > > 2. I might be using OpenBSD on some of my boxes and I'd prefer to use > Epoch even though it's unsupported, because I wrote it to be exactly what > I (not anyone else) wanted in an init system, after all. > > Again, thanks for your help everyone. > -Ben - Martin