PDA

View Full Version : Parent Process Of Init Process?


Ishan
19-07-2007, 08:51 AM
Parent Process Of Init Process?

I Have Read About Its Parent Process In Sumitabha Das Book. Its Starting From 's...'
Any One Know About It?

rocket357
19-07-2007, 09:04 AM
Taken from http://www.2000trainers.com/linux/linux-process-manage/4/

Every process has a parent process, with the exception of [init], whose parent process ID (PPID) is 0. It is important to understand the effects of killing a process, especially if that process has spawned child processes.

This doesn't mean such a thing doesn't exist, but my understanding of it is in line with this quote. Interesting topic, though, because if a rootkit could be written to accomplish this "init parent process", then the rootkit would gain complete visibility of the entire system's process space(s).

praka123
19-07-2007, 09:42 AM
btwn pid 0 is for scheduler.
http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html

Now sysVinit is replaced by the likes of upstart(ubuntu and debian),initng(gentoo?) etc.
http://upstart.ubuntu.com/
Feature Highlights
Tasks and Services are started and stopped by events
Events are generated as tasks and services are started and stopped
Events may be received from any other process on the system
Services may be respawned if they die unexpectedly
Bi-directional communication with init daemon to discover which jobs are running, why jobs failed, etc.Planned Features
Events generated at timed intervals or scheduled times
Events generated as files or directories are changed
Supervision and respawning of daemons which separate from their parent process
User services, which users can start and stop themselves
Communication with the init daemon over DBUS it seems many things are changing...in future no zombie processes left in ur unixen.

[/URL]

EDIT:
i found a good link here:

[url]http://www.bglug.ca/articles/linux_boot_process.html (http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html)
http://www.bglug.ca/articles/lbp_images/kernel_boot.png