2021-10-17 16:07:22 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2018-07-03 19:22:29 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Test for StandardOutput=append:
|
|
|
|
|
|
|
|
[Service]
|
2021-04-07 22:09:55 +00:00
|
|
|
ExecStartPre=sh -c 'printf "hello\n" >/tmp/test-exec-standardoutput-output'
|
|
|
|
ExecStartPre=sh -c 'printf "hello\nhello\n" >/tmp/test-exec-standardoutput-expected'
|
2018-07-03 19:22:29 +00:00
|
|
|
StandardInput=data
|
|
|
|
StandardInputText=hello
|
|
|
|
StandardOutput=append:/tmp/test-exec-standardoutput-output
|
|
|
|
StandardError=null
|
|
|
|
ExecStart=cat
|
|
|
|
ExecStart=cmp /tmp/test-exec-standardoutput-output /tmp/test-exec-standardoutput-expected
|
|
|
|
Type=oneshot
|