[英]Convert init to systemd
I'm running a customized linux distribution built with reference to ubuntu 12.04 which has init as user space startup process by default. 我正在运行参考ubuntu 12.04构建的自定义linux发行版,该发行版默认将init作为用户空间启动过程。 But now I want to switch over to systemd init system which is available from ubuntu 15.04. 但是现在我想切换到从ubuntu 15.04获得的systemd init系统。 I installed the systemd components & libraries and also written unit files to replace init.d service daemon scripts. 我安装了systemd组件和库,还编写了单元文件来替换init.d服务守护程序脚本。
I want to know how the system can start the systemd as init process? 我想知道系统如何启动systemd作为init进程吗?
The kernel starts the init system located in /sbin/init
(see also this wikipedia article ) This process is responsible for starting every other process and should not die or exit (this will result in a panic). 内核启动位于/sbin/init
的init系统(另请参见此Wikipedia文章 )。该进程负责启动其他所有进程,并且不应死机或退出(这将导致恐慌)。
One can also temporarily change the init daemon by using the init boot param on the kernel command line: init=/path/to/init_program
. 也可以使用内核命令行上的init引导参数来临时更改init守护程序: init=/path/to/init_program
。
Depending on your bootloader you should be able to edit the kernel commandline and test your changes. 根据您的引导加载程序,您应该能够编辑内核命令行并测试您的更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.