Hi, I've tried other resources, even reading the source for init, but I can't seem to locate the magic that makes /sbin/init the approved init. I'm porting my init system Epoch to BSD for personal reasons, and I'd like it to work under OpenBSD, which I've been enjoying as of late. I come from the linux world where init=/bin/sh is perfectly valid, so some aspects are probably simpler in Linux. I am hoping there is a concise and clean explanation as to how to write/port an init system to BSD. Is it signal trickery? A checksum burned into the kernel? I'm lost. I'm given "init has died, signal 0 exit 0" or something nearly identical to this. There are no further useful debug messages and my keyboard becomes unresponsive on the debugging prompt or the kernel locks up or something, so I can't do more there.
Thanks for your time. -Ben