With a recent sysvinit (2.74), you can just do this in a startup script:
mknod -m 600 /dev/initctl p
kill -USR1 1
>From the manpage:
SIGUSR1
On receipt of this signals, init closes and re-opens
it's control fifo, /dev/initctl. Useful for
bootscripts when /dev is remounted.
>> as far as i know, you can't run init as slave process.
>
>Really? Why not?
It checks if it is really init with (getpid() == 1). Also, it wait()s for
all processes that die; the process with pid #1 _has_ to do that.
Mike.
-- Miquel van Smoorenburg | Our vision is to speed up time, miquels@cistron.nl | eventually eliminating it.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu