如何在 openrc 中找到进程的标准输出?
这是我创建守护进程的方式。
/etc/init.d/mydaemon
#!/sbin/openrc-run
command="python3"
command_args="/srv/http/tornado.py"
command_background="yes"
pidfile="/tmp/tornado.pid"
Run Code Online (Sandbox Code Playgroud)
我在日志中得到的只是:
* Starting tornado ... [ ok ]
Run Code Online (Sandbox Code Playgroud)
我有默认/etc/rc.conf
设置rc_logger="YES"
。我想得到的是类似于 systemd 允许查看守护进程的标准输出sudo journalctl -u mydaemon
我已经购买了具有 intel i7 6700HQ 的 msi gs40,这意味着集成显卡 hd 530。经过一天的挣扎,我能够使用 HD530 启动 xorg。为此,我将i915 添加到 initramfs 并将i915.preliminary_hw_support=1 添加到内核参数。但是 xorg 在一天结束时挂起,有时在启动后立即挂起,有时在使用几个小时后。我试过archlinux:
intel_idle.max_cstate=1
和 XorgOption "DRI" "False"
使用一段时间后一切都冻结了,我在 journalctl 中得到了 glib stacktrace(同时 xorg.log 和 dmesg 很好)有时我进入couldn't open dis display :0
dmesg 并且应用程序拒绝启动。journalctl kde 的显示Bad windows
,肉桂的其他错误。这是系统启动的 dmesg,使用 4.4-rc5 内核,没有外部显示器。