Debian8重启/停止/启动后无响应



几个月前,我使用了一台安装了Debian 8 Jessie的VPS。对我来说奇怪的是,在执行一些操作(如service [stop|start|restart])后,debian没有通知我(例如:重启nginx: nginx,就像旧的debian 7 wheezy)。昨天,我在我的虚拟机上安装了Debian 8 Jessie,但是这个"bug"仍然存在。我应该安装一些额外的库,还是设置它们?

Debian现在使用systemd

systemctl start example1

调查systemd在启动或重启/关闭时挂起的原因。

通过cmdline增加冗长:添加"systemd.log_target=kmsg systemd.log_level=debug"

[ /etc/default/grub ]
GRUB_CMDLINE_LINUX="systemd.log_target=kmsg systemd.log_level=debug" <--- Add here (by uncommenting you can easily switch to debug)
# update-grub

Systemd不像旧的SysV脚本那样冗长,所以您描述的"bug"是预期的行为。

旧的命令,如"service"只是简单的符号链接/脚本,将工作委托给systemd。据我所知,这与/etc/init. ini相同d脚本。

最新更新