Translated message

A translation of this page exists in English.

在 Red Hat Enterprise Linux 7 中,如何在网络启动后启动 SysV init 脚本

Solution In Progress - Updated -

Issue

  • systemd 包含了对 /etc/rc.d 中 SysVinit 服务脚本的兼容性,但如何配置依赖项,以便第三方 initscript 在某些其他原生 systemd 单元(如网络)之后才会启动?

  • 我们正在努力将传统平台从 RHEL5 移植到 RHEL7,我们遇到了一些问题,其中 chkconfig 的 sysvinit 服务在网络和 NFS 之前启动,它们是依赖关系。是否有一种方法可以延迟 sysvinit 脚本,直到 systemd init 完成,或者甚至有更好的方法,直到几个需求得到满足?

  • 我有一个旧的 SysV init 脚本,在 RHEL 7 中,它需要在网络启动后启动,我无法将 initscript 转换为 systemd 服务文件。

Environment

  • Red Hat Enterprise Linux 7
  • SysVinit 服务脚本
  • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content