answersLogoWhite

0

What is INIT process in Linux?

Updated: 11/7/2022
User Avatar

Wiki User

12y ago

Best Answer

The init program is the first program run after your kernel begins running. It is configured with the /etc/inittab file. By modifying your /etc/inittab file, you change your system configuration in the following areas:

  1. Start up system run level.
  2. Specify processes to be executed during system boot.
  3. Specify processes to be run when the specified runlevel is entered.
  4. Specify processes to be run on certain runlevels with actions like respawn so the process is restarted any time it terminates.
  5. Specify certain actions or processes to be run if certain signals or user actions are indicated.
User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is INIT process in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What process always starts first when Linux boots?

init.Answer:'init' is always process ID 1.


How do you invoke a user program from the kernel?

The Linux kernel will automatically call "init." init will in turn launch any other processes. You can add a process in by creating a script for it in the appropriate run level.


What is process id of Linux kernel?

The Linux kernel does not have a process id (also called pid). Process 1 is almost always the process scheduler, init. PIDs are assigned to each subsequent process that is started and they will usually vary. Do not remove init, doing so would likely have catastrophic consequences, a kernel panic for instance. Unless you particularly enjoy using the crash utility. $ man crash [JMH]


What command would cleanly reboot your Linux box?

init 6


What would you name the link to an init script that would start the fictitious bigd daemon early in the boot process in Fedora Linux?

/etc/rc5.bigd.d


Which file contains the boot related information in Linux?

There's no single file that contains the boot information. Nor is the method of booting uniform across all platforms and distributions. There are dozens of bootloaders, each of which have their own configuration files in various locations.


What process has the process id of 1 and is known as the father of all processes?

The process is called 'init'


What Linux command will let you most safely switch to run level 2 without rebooting the computer?

Assuming the Linux distribution in question uses a classic SysV Init, you run, as root: # init 2 If you have systemd then there is no runlevel 2. I don't know about upstart. OpenRC is built around SysV Init, but likely systems using it generally ignore runlevels in favor of the initscript configs. Further, most Linux distributions I can think of don't use runlevel 2 at all. Check the documentation for your distribution to see what it is, if anything.


Who is the parent of the zombie process?

zombie processes are inherited by the 'init' process (PID 1)


What kind of operating system is Init?

Init, short for initialization is a process that is the direct or indirect ancestor of all other processes. It is the first process started during booting. It collects all processes that are have been 'orphaned'. Init runs until the system is powered off.


What is process-id of Linux kernel?

The Linux kernel doesn't consider itself a process, therefore it has no process id.


What is the parent process ID of an orphan process in UNIX?

Usually any orphaned process is owned by the 'init' process (process #1)