systemctl service-log-target
Get or set the log target for a service. Only works for D-Bus integrated services. More information: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#service-log-target SERVICE [TARGET].
- Show the current log target for a service:
systemctl service-log-target
- Set the log target to
console(send logs tostderr):
systemctl service-log-target console
- Set the log target to
journal(send logs tosystemd-journald):
systemctl service-log-target journal
- Set the log target to
syslog(send logs to/dev/log):
systemctl service-log-target syslog
- Allow systemd to choose an appropriate log target:
systemctl service-log-target auto
- Disable all log output:
systemctl service-log-target null
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
