当前位置: 首页 > news >正文

The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linux

I am subscribed to several mailing lists related to various Linux Distributions and Applications just to keep myself updated with what’s going on where. What are the new bugs? What are the Patches Released? What is expected in next release? and a whole lot of other stuffs. These days the mailing list is heavily populated with “Choose your side on Linux Divide”, mainly on Debian Mailing list along with a few other.

systemd replaces init

What “Choose your side on Linux Divide” is all about?

Theinitdaemon is going to be replaced with daemonsystemdon some of the Linux Distributions, while a lot of them have already implemented it. This is/will be creating a huge gap between traditional Unix/Linux Guard and New Linux Guard – programmers and System Admins.

In this article, we will discuss and solve following all queries one-by-one.

  1. What init is?
  2. What is systemd?
  3. Why init needed to be replaced?
  4. What features systemd will own.
What is init?

In Linux,initis a abbreviation for Initialization. Theinitis a daemon process which starts as soon as the computer starts and continue running till, it is shutdown. In-fact init is the first process that starts when a computer boots, making it the parent of all other running processes directly or indirectly and hence typically it is assigned “pid=1“.

If somehowinitdaemon could not start, no process will be started and the system will reach a stage called “Kernel Panic“. init is most commonly referred to asSystem V init. System V is the first commercial UNIX Operating System designed and usages of init on most of the Linux Distribution of today is identical withSystem V OSwith a few exception like Slackware using BSD-style and Gentoo using custom init.

The need to replace init with something more perfect was felt from a long time and several alternatives were developed from time-to-time, some of which became distribution’s native init replacement, some of which are:

  1. Upstart– A init replacement daemon implemented in Ubuntu GNU/Linux and designed to start process asynchronously.
  2. Epoch– A init replacement daemon built around simplicity and service management, designed to start process single-threaded.
  3. Mudar– A init replacement daemon written in Python, implemented on Pardus GNU/Linux and designed to start process asynchronously.
  4. systemd– A init replacement daemon designed to start process in parallel, implemented in a number of standard distribution – Fedora, OpenSuSE, Arch, RHEL, CentOS, etc.
What is systemd?

Asystemdis a System Management Daemon named with UNIX convention to add ‘d‘ at the end of daemon. So, that they can be easily recognized. Initially it was released under GNU General Public License, but now the releases are made under GNU Lesser General Public License. Similar to init, systemd is the parent of all other processes directly or indirectly and is the first process that starts at boot hence typically assigned a “pid=1“.

Asystemd, may refer to all the packages, utilities and libraries around daemon. It was designed to overcome the shortcomings of init. It itself is a background processes which is designed to start processes in parallel, thus reducing the boot time and computational overhead. It has a lot other features as compared to init.

Why there was a need to replace init?

A init process starts serially i.e., one task starts only after the last task startup was successful and it was loaded in the memory. This often resulted into delayed and long booting time. However, systemd was not designed for speed but for getting the things done neatly which in turns avoid all the UN-necessary delay.

Features of systemd
  1. Clean, stateforward and efficient design.
  2. Simpler boot process.
  3. Concurrent and parallel processing at boot.
  4. Better API.
  5. Simple Unit Syntax.
  6. Ability to remove optional components.
  7. Low memory footprints.
  8. Improved technique to express dependencies.
  9. Initialization instruction written in config file and not in shell script.
  10. Make use of Unix Domain Socket.
  11. Job Scheduling using systemd Calendar Timers.
  12. Event Logging with journald.
  13. Choice of logging System events with systemd as well as syslog.
  14. Logs are stored in binary file.
  15. systemd state can be preserved to be called later in future.
  16. Track process using kernel’s cgroup and not PID.
  17. Users login managed by systemd-logind.
  18. Better integration with Gnome for interoperability.
Bottlenecks systemd
  1. Everything at one place.
  2. Not POSIX standard.
Systemd and Distro Integration
Linux DistributionIntegration
FedoraYes, first distro to adopt systemd
ArchYes
RedHatYes
CentOSYes
DebianYes, Debian 8 codename Jessie will have systemd by default
GentooYes, but needs to be downloaded, installed and configure side with custom init
OpenSUSEYes
SlackNo (Though it has not been adopted till now in slackware, Patric Volkerding has not shown any indication if it will be adopted or not)
UbuntuYes, needs to be installed and configured with Upstream.
Controversy

Linus Torvalds, Chief architect of Linux kernel, feels attitude of key developer of systemd towards users and bug reports do not seems ok. It was also reported that systemd philosophy is weird and a foreign way to control system processes. The same has been recorded from Patric Volkerding and other notable Linux Users and Developers as well as over online forum, time-to-time.

systemd vs init
Featuresinitsystemd
DBus Dependency – MandatoryNoYes
Device based ActivationNoYes
Device dependency configuration with udevNoYes
Timer based ActivationCron/atProprietary
Quota ManagementNoYes
Automatic Service Dependency HandlingNoYes
Kills users Process at logoutNoYes
Swap ManagementNoYes
SELinux integrationNoYes
Support for Encrypted HDDNoYes
Static kernle module loadingNoYes
GUINoYes
List all the child processesNoYes
Sysv compatibleYesYes
Interactive bootingNoYes
Portable to non x86YesNo
Adopted onSeveral DistroSeveral Distro
Parallel service startupNoYes
Resource limit per serviceNoYes
Easy extensible startup scriptYesNo
Separate Code and Configuration FileYesNo
Automatic dependency calculationNoYes
Verbose debugYesNo
VersionN/AV44+
Size560 KBN/A
Number of Files75 files900 files + glib + DBus
Lines of code – LOC15000 (Approx)224000 (Approx) (inc Codes, comments and white space) 125000 (Approx) (acctual code)
Conclusion

Anything running as pid=1 must not break, must not be mess and must be controlled by users effectively and efficiently. Many-a-user believes that replacing init for systemd is nothing more than reinventing the wheel everytime as a side effect of Linux. But this is the diverse nature of Linux. This is because Linux is that much powerful. Change is good and we must appreciate it if it is for a good reason.

That’s all for now. I’ll be here again with another Interesting article you people will love to read. Till then stay tuned and connected to Tecmint. Don’t forget to provide us with your valuable feedback in the comments below.

http://www.jsqmd.com/news/381715/

相关文章:

  • 讲讲2026年建设工程纠纷律师服务,全国哪个口碑好 - myqiye
  • 2026年,8年AI从业者分享:我如何通过三次转型保持职业生命力
  • 好用还专业! 降AIGC软件 千笔·专业降AI率智能体 VS 文途AI
  • 这次终于选对了!9个降AI率软件降AIGC网站:MBA必看的深度测评与推荐
  • 干货总结:我深耕AI领域,靠这几种核心技能跨越多次技术周期
  • 说说科研热像仪适用于大气科研的品牌,上海热像科技靠谱吗 - 工业品牌热点
  • 闭眼入AI论文平台,专科生专属千笔 VS speedai,高效省心!
  • 探寻口碑好的卧螺沉降离心机公司,哪家值得选? - myqiye
  • 家装设计师服务有哪些,北京地区优质品牌大分享 - 工业推荐榜
  • 2026选市场新型太空科幻机械舱制造厂家,看这几个方面!市场质量好的机械舱定做厂家排行精选实力品牌榜单发布 - 品牌推荐师
  • 照着用就行:AI论文工具,千笔 VS speedai,专科生专属!
  • ScopedValue横空出世,Java开发者告别ThreadLocal的新选择!
  • 分析可靠的科研热像仪厂家,推荐科研热像仪厂家解读 - 工业品牌热点
  • 2026年考研数学辅导机构排名,高性价比公司费用怎么算 - 工业设备
  • 【预测模型】量子粒子群算法改进LSSVM(QPSO-LSSVM)的温度补偿附Matlab代码
  • 讲讲口碑好的家装设计师服务,推荐靠谱企业 - 工业推荐榜
  • 说说杭州有实力的地板品牌店,哪家口碑好且价格合适 - mypinpai
  • 详细介绍:二分查找边界模板:第一个 > target / 第一个 < target(找不到就返回边界)
  • 西安哪些线下情人节礼物店铺靠谱,情人节礼物送老婆实用清单在此 - 工业品网
  • 聊聊拉链袋包装制造厂哪家好,性价比高的厂家全解析 - mypinpai
  • 详细介绍:全面股市知识普及:从概念到实践
  • 揭秘颜语堂考研英语写作提升效果,性价比高吗? - 工业设备
  • 2026初学者古筝推荐,实用款排行盘点,瑶鸾古筝Y103系列(星辰)/瑶鸾古筝Y106系列,古筝源头厂家有哪些 - 品牌推荐师
  • 2026年口碑好的交互设计培训机构分析,移动端交互设计培训课程解析 - 工业品网
  • 2026更新版!8个AI论文网站测评:自考毕业论文写作+格式规范全攻略
  • 全网最全 9个AI论文软件测评:专科生毕业论文+开题报告写作神器推荐
  • IoT 安全态势感知:利用网络空间测绘发现暴露的 IoT Web 资产
  • 【工具变量】企业固定资产加速折旧DID数据集(2008-2025年)
  • Jetson AGX 系列平台及其在人形机器人中的应用进展、比较优势与不足、应用前景和发展趋势(2)
  • 实用指南:同态加密搞定医疗数据安全共享