QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2368|回复: 1

systemd 开机提示有个 [failed] daemon 但开机提示太块无法定位

[复制链接]
发表于 2012-10-6 23:41:34 | 显示全部楼层 |阅读模式
各位兄台,archlinux 按照 wiki 用 systemd 启动 daemon 进程
开机内核加载完成,进入 systemd 后,在挂载分区之前,有一个标红的 [failed] 提示
但是开机滚屏太快了,我没法确定是哪里的问题

启动 slim 登录管理器,进入 init5 后,我手动 C-A-F1 切换到 console 下
但是无法通过 Shift-Page_Up 来向上滚动查看那个错误提示

之后不停的重启,尝试用 Scroll Lock 锁定,可是真心,没有机器快啊

之后登录进系统,参看 wiki 中提到用 systemctl 和 journalctl 命令查看日志,都没有
关于 failed 的提示
Q: How do I get more verbose output during boot?
A: If you see no output at all in console after the initram message, this means you have the quiet parameter in your kernel line. It's best to remove it, at least the first time you boot with systemd, to see if everything is ok. Then, You will see a list [ OK ] in green or [ FAILED ] in red. Any messages are logged to the system log and if you want to find out about the status of your system run systemctl (no root privileges required) or look at the boot/system log with journalctl.


这是我 journalctl -ab 的输出:
http://pastebin.ca/2245671

只有这个提示:但是从启动顺序来看,不是这个问题,[failed] 提示在挂载分区之前
Oct 06 23:16:09 archbook dbus-daemon[452]: dbus[452]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details

后面参考:
http://fedoraproject.org/wiki/How_to_debug_Systemd_problems
grub 中设置 kernel 参数:
systemd.log_target=syslog
发现 syslog 的日志就是 journalctl 的信息
不是类似 [OK] / [failed] 的提示

各位兄台,你们是否有好的方法,可以锁定有问题的 daemon 进程,谢谢
发表于 2012-10-7 00:20:06 | 显示全部楼层
cat /var/log/boot
这个文件是由 /sbin/bootlogd 服务产生的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-24 04:31 , Processed in 0.081841 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表