Systemd/User Services/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "列出所有活跃用户单位:"
Ardenet (talk | contribs)
Created page with "要查看特定用户服务的日志,请使用 <code>journalctl</code> 和 <code>--user-unit</code> 选项:"
Tags: Mobile edit Mobile web edit
Line 77: Line 77:
<syntaxhighlight lang="console"> $ systemctl --user status my-cool-user-service </syntaxhighlight>
<syntaxhighlight lang="console"> $ systemctl --user status my-cool-user-service </syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
要查看特定用户服务的日志,请使用 <code>journalctl</code> <code>--user-unit</code> 选项:
To view logs for a specific user service, use <code>journalctl</code> with the <code>--user-unit</code> option:
</div>


<syntaxhighlight lang="console"> $ journalctl --user-unit my-cool-user-service </syntaxhighlight>
<syntaxhighlight lang="console"> $ journalctl --user-unit my-cool-user-service </syntaxhighlight>