当"无法与init守护进程通信时,如何干净地重新启动核心操作系统"看到了吗?

时间:2016-05-13 23:21:57

标签: coreos

出现以下问题后,如何干净地重新启动coreOS?

core@node2 ~ $ sudo reboot
Failed to talk to init daemon
core@node2 ~ $ sudo shutdown -r now
Failed to talk to init daemon.
core@node2 ~ $ sudo systemctl reboot
Failed to get D-Bus connection: Operation not permitted
core@contiv-node2 ~ $ shutdown
Must be root.
core@node2 ~ $ sudo shutdown
Unable to perform operation without bus connection.
core@node2 ~ $ cat /etc/lsb-release 
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=991.2.0
DISTRIB_CODENAME="Coeur Rouge"
DISTRIB_DESCRIPTION="CoreOS 991.2.0 (Coeur Rouge)"

2 个答案:

答案 0 :(得分:27)

sudo reboot -f
  

-f, - force          强行立即停止,关机,重启。不要联系init系统。

答案 1 :(得分:0)

kill -15 1

那应该唤醒init守护程序,然后您应该能够照常重启。 (i.e. sudo kill -15 1; sudo reboot

如果可能的话,这比重启-f更好,因为您可以执行干净的重启。