systemd 接管的打印输出如何查看

4810阅读 0评论2019-05-28 fangdikui
分类:嵌入式

1.查找进程对应的 unit 名,在终端下面的命令,可以列出systemd所启动的全部服务名
#systemctl list-unit-files 
按回车键,逐一列出,找到想要追踪的进程  run-app.service                        static 
2.键入下面的命令
#journalctl -u run-app  > run-app.txt
run-app.txt就保存了这个进程输出的全部内容



上一篇:Buildroot 如何在现有项目加入自己的APP
下一篇:Requested init /linuxrc failed (error -2).