【问题标题】:Convert init to systemd将 init 转换为 systemd
【发布时间】:2015-10-29 07:46:28
【问题描述】:

我正在运行一个参考 ubuntu 12.04 构建的定制 linux 发行版,默认情况下它具有 init 作为用户空间启动进程。但现在我想切换到 ubuntu 15.04 提供的 systemd init 系统。我安装了 systemd 组件和库,还编写了单元文件来替换 init.d 服务守护程序脚本。

我想知道系统如何将systemd作为init进程启动?

【问题讨论】:

    标签: linux shell ubuntu init systemd


    【解决方案1】:

    内核启动位于/sbin/init的init系统(另见wikipedia article) 该进程负责启动其他所有进程,不应终止或退出(这将导致恐慌)。

    也可以使用内核命令行上的 init 引导参数临时更改 init 守护进程:init=/path/to/init_program

    根据您的引导加载程序,您应该能够编辑内核命令行并测试您的更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-20
      • 2018-06-08
      • 2017-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-21
      相关资源
      最近更新 更多