Analysis of Linux init system initialization, analysis of init
In recent years, the init process of Linux has undergone two major evolution, and the traditional sysvinit has gradually faded out of the historical stage. The new UpStart and systemd have their own characteristics, more and more Linux distributions adopt systemd. This article briefly introduces the use and principles of these three init systems. Every Linux system administrator and system software developer should understand them to better manage systems and develop applications.
Analysis of Linux init system initialization, Part 1: sysvinit
Analysis of Linux init system initialization, Part 1: UpStart
Analysis of Linux init system initialization, Part 1: Systemd
The main design goal of Systemd is to overcome the inherent shortcomings of the traditional Linux main Startup Program SysVinit and improve the system startup speed. Compared with competitors of the same kind of SysVinit, such as Ubuntu upstart and Systemd, it is more avant-garde. In simple terms, its design concept draws on the Mac System Startup Program Launchd. In fact, the role of Systemd is far from starting the system. It also takes over the duties of starting, ending, querying status, and archiving logs of system services, it also supports scheduled tasks and tasks triggered by specific events (such as inserting specific USB devices) and specific port data.