简体   繁体   English

将init转换为systemd

[英]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.

相关问题 init.d脚本到systemd参数问题 - Init.d script to systemd problem with parameters PID1是哪一个:/ sbin / init或systemd - Which one is PID1: /sbin/init or systemd 我怎么知道“ init”还是“ systemd”控制着码头工人? - How do I know whether “init” or “systemd” controls the docker? 如何将包含SysV初始化脚本的RPM软件包移植到systemd? - How to port an RPM package consist of SysV init script to systemd? 如何在Manjaro上将sysvinit脚本转换为systemd - How to convert sysvinit script to systemd on Manjaro init.d脚本可在控制台中完美运行,而在systemd的服务调用中效果不佳 - init.d scripts works perfectly in console, bad poorly in systemd's service call 使用centos / systemd作为基本映像时,如何在docker文件CMD中启动init文件和shell脚本文件? - How to launch a init file and shell script file in docker file CMD when using centos/systemd as base image? 为什么我的Erlang启动脚本在控制台上运行,但从init系统(sysvinit,upstart,systemd)运行时不起作用? - Why does my Erlang boot script work from console but does not work when run from init system (sysvinit, upstart, systemd)? hostnamectl 问题 系统尚未使用 systemd 作为 init 系统 (PID 1) 引导。 不能操作。 无法连接到总线:主机已关闭 - hostnamectl Problem System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down 这是systemd中的错误吗? - is it a bug in systemd?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM