我的一些未解决疑难

三葉Leaves Author

Systemd和Docker的冲突

试图使用命令重启系统时,报错信息

1
2
3
4
5
6
7
8
9
10
11
12
13
root@ubuntuMC1:/# reboot
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon: Host is down

root@ubuntuMC1:/# shutdown -r now
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon: Host is down

试图使用systemd服务设置开机自启动应用时,已经写好.service文件,试图更新配置文件时报错

1
2
3
root@ubuntuMC1:/etc/systemd/system# systemctl daemon-reload
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

关于rc*.d文件的困惑

这个问题在我试图设置开机自启动应用时遇到了

如上图所示,我的etc文件夹内的rc*.d十分奇怪。

Cron的启动运行悖论

crontab里的@reboot规则需要依赖于cron service才能运行

但是开机状态下cron service并不能运行

  • 标题: 我的一些未解决疑难
  • 作者: 三葉Leaves
  • 创建于 : 2024-09-25 00:00:00
  • 更新于 : 2024-11-21 16:56:20
  • 链接: https://leavesblog.netlify.app/b844e6cf51f5/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论