What is the configuration file for the init program?
-
/etc/init.conf
-
/etc/default/inittab
-
/etc/inittab
-
/etc/init.d
The init program (traditional SysVinit) uses /etc/inittab as its configuration file. This file defines runlevels, what happens at each runlevel, which terminals to enable, and default runlevel behavior. /etc/init.d is a directory of init scripts, not a config file. Modern systems using systemd don't use inittab.
On traditional Unix/Linux SysV-init systems, /etc/inittab is the configuration file read by the init process (PID 1) to determine default runlevel and what processes to spawn at each runlevel (getty terminals, respawning daemons, etc.). /etc/init.conf and /etc/default/inittab are not standard file names/locations for this purpose, and /etc/init.d is a directory of init scripts (for starting/stopping services), not init's own configuration file.