test/testdata/integration-tests/TEST-04-JOURNAL/TEST-04-JOURNAL.units/logs-filtering.service
raw| 1 | [Unit] |
| 2 | Description=Log filtering unit |
| 3 | |
| 4 | [Service] |
| 5 | Type=oneshot |
| 6 | # If the service finishes extremely fast, journald cannot find the source of the |
| 7 | # stream. Hence, we need to call 'journalctl --sync' before service finishes. |
| 8 | ExecStart=bash -c 'echo "Logging from the service, and ~more~ foo bar"; journalctl --sync' |
| 9 | SyslogLevel=notice |
| 10 | LogLevelMax=info |