小编rog*_*mes的帖子

/etc 中的 rc0.d,rc1.d,... 目录

我正在运行 Ubuntu,其中有目录/etc/rc0.d, /etc/rc1.d, /etc/rc2.d, ..., /etc/rc6.d。

我机器上的示例文件:

directory      example symlinks in the dir
------------------------------------------
/etc/rc1.d:    K76dovecot, K77ntp
/etc/rc2.d:    S23ntp, S24dovecot
/etc/rc3.d:    S23ntp, S24dovecot
/etc/rc4.d:    S23ntp, S24dovecot
/etc/rc5.d:    S23ntp, S24dovecot
Run Code Online (Sandbox Code Playgroud)

问题:

  1. 多个“rc”目录的目的是什么?
  2. 为什么 Ubuntu 将dovecot和 的重复安装ntp到除rc0.d和之外的所有目录中rc6.d?
  3. 如果它们像上面一样被多次指定,它们实际上是否被多次执行?
  4. 你能从上面看出以什么顺序dovecot并ntp在启动时执行吗?
  5. 告诉 Ubuntu在启动ntp前始终执行的正确方法是什么dovecot?

init-script services init.d

38
推荐指数
3
解决办法
9万
查看次数

标签 统计

init-script ×1

init.d ×1

services ×1