[lkml]   [1998]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: devfs patch v21 available
In article <199803310849.SAA03798@vindaloo.atnf.CSIRO.AU>,
Richard Gooch <rgooch@atnf.CSIRO.AU> wrote:
>Andreas Jellinghaus writes:
>> > # cd /sbin
>> > # mv init init.real
>> > # echo '#! /bin/sh\nmount -n -t devfs none /dev\n/sbin/init.real' > init
>> > # chmod a+x init
>> did you try this one ?
>Er, no, since I never needed that.

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:

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.

Miquel van Smoorenburg | Our vision is to speed up time, | eventually eliminating it.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to

 \ /
  Last update: 2005-03-22 13:42    [W:0.096 / U:3.412 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site