HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/integration-tests/TEST-04-JOURNAL/TEST-04-JOURNAL.units/verbose-success.service

Git blob: 97b938759473fe20e41bc5e0c1d6c3e983b6159b

Lines 1–11 of 11

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Verbose successful service
 
[Service]
Type=oneshot
# 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=bash -c 'echo success; journalctl --sync'
LogLevelMax=info