Systemd/User Services/zh: Difference between revisions
Created page with "列出所有活跃用户单位:" |
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> | ||
要查看特定用户服务的日志,请使用 <code>journalctl</code> 和 <code>--user-unit</code> 选项: | |||
<syntaxhighlight lang="console"> $ journalctl --user-unit my-cool-user-service </syntaxhighlight> | <syntaxhighlight lang="console"> $ journalctl --user-unit my-cool-user-service </syntaxhighlight> |