mirror of
https://github.com/systemd/systemd
synced 2024-07-22 10:44:58 +00:00
12 lines
355 B
Desktop File
12 lines
355 B
Desktop File
[Unit]
|
|
Description=Log filtering unit
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=sh -c 'echo "Logging from the service, and ~more~ foo bar"'
|
|
# If the service finishes extremely fast, journald cannot find the source of the
|
|
# stream. Hence, we need to call 'journalctl --sync' before service finishes.
|
|
ExecStart=journalctl --sync
|
|
SyslogLevel=notice
|
|
LogLevelMax=info
|