Re: /dev/initctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux