Systemd/User Services/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "要查看特定用户服务的日志,请使用 <code>journalctl</code> 和 <code>--user-unit</code> 选项:"
Tags: Mobile edit Mobile web edit
Ardenet (talk | contribs)
Created page with "要与用户相关的 systemd 服务交互,请在 <code>systemctl</code> 命令中使用 <code>--user</code> 标志。例如,要检查用户服务的状态:"
Line 71: Line 71:
== 用法 ==
== 用法 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
要与用户相关的 systemd 服务交互,请在 <code>systemctl</code> 命令中使用 <code>--user</code> 标志。例如,要检查用户服务的状态:
To interact with user-specific systemd services, use the <code>--user</code> flag with the <code>systemctl</code> command. For example, to check the status of a user service:
</div>


<syntaxhighlight lang="console"> $ systemctl --user status my-cool-user-service </syntaxhighlight>
<syntaxhighlight lang="console"> $ systemctl --user status my-cool-user-service </syntaxhighlight>