【问题标题】:Conclusion of result of work of the Linux service?Linux服务的工作结果的结论?
【发布时间】:2018-06-09 06:31:13
【问题描述】:

在系统启动时作为服务自动启动一个脚本。例如:myscript.service

问题 - 如何实时查看我的脚本的工作(结论)。以此类推,就好像我从终端启动了脚本,我看到了一个脚本工作的结论。

service myscript status 删除了几行并且不更新结论

【问题讨论】:

标签: linux debian


【解决方案1】:
journalctl -f -u myscript

假设您已经使用了 systemd 功能。

Either redirect> 记录到文件和tail -f 命令

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-23
    • 1970-01-01
    • 2021-06-23
    • 2011-01-06
    • 1970-01-01
    • 2021-03-09
    • 2019-09-23
    相关资源
    最近更新 更多