【发布时间】:2018-09-24 12:31:22
【问题描述】:
我正在使用sudo journalctl -u some-service -f 查看服务的日志。但是,当服务运行时,最后一条日志始终是以下形式:
***Plenty of logs from previous instance of Some Service***
Apr 14 09:03:05 user-computer systemd[1]: Stopped Some Service.
Apr 14 09:03:35 user-computer systemd[1]: Started Some Service.
我期望看到的:
***Plenty of logs from previous instance of Some Service***
Apr 14 09:03:05 user-computer systemd[1]: Stopped Some Service.
Apr 14 09:03:35 user-computer systemd[1]: Started Some Service.
***New logs from current instance of Some Service***
为什么我看不到当前运行的服务实例的日志?只有在我停止/重新启动服务后,我才能看到来自该实例的日志。
请帮忙。
【问题讨论】: