Systemd/User Services/zh: Difference between revisions
Created page with "要查看特定用户服务的日志,请使用 <code>journalctl</code> 和 <code>--user-unit</code> 选项:" Tags: Mobile edit Mobile web edit |
Created page with "要与用户相关的 systemd 服务交互,请在 <code>systemctl</code> 命令中使用 <code>--user</code> 标志。例如,要检查用户服务的状态:" |
||
Line 71: | Line 71: | ||
== 用法 == | == 用法 == | ||
要与用户相关的 systemd 服务交互,请在 <code>systemctl</code> 命令中使用 <code>--user</code> 标志。例如,要检查用户服务的状态: | |||
<syntaxhighlight lang="console"> $ systemctl --user status my-cool-user-service </syntaxhighlight> | <syntaxhighlight lang="console"> $ systemctl --user status my-cool-user-service </syntaxhighlight> |