On Fri, Aug 12, 2005 at 01:15:26 +0900, NAHieu wrote: > In Linux, we can change the run level by writing into /dev/initctl. I > trying to look for the code handling that device, but "grep -r > initctl" doesnt show anything useful (??) That is very odd to me. > > Could anybody please tell me where should I look into for that /dev/initctl? Did you even ls -l the file? If you did, you'd know, that it is *NOT* a device. It is a named pipe open by init (/sbin/init, running with pid 1) for reading. As a side note, Linux (kernel) has nothing to do with runlevels. It is completely a userland business, introduced in System V and replicated in other unices. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature