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=file:
|
|
|
|
|
|
|
|
[Service]
|
2021-04-07 22:09:55 +00:00
|
|
|
ExecStartPre=sh -c 'printf "nooo\nhello\n" >/tmp/test-exec-standardoutput-output'
|
|
|
|
ExecStartPre=sh -c 'printf "hello\nello\n" >/tmp/test-exec-standardoutput-expected'
|
2018-07-03 19:22:29 +00:00
|
|
|
StandardInput=data
|
|
|
|
StandardInputText=hello
|
|
|
|
StandardOutput=file:/tmp/test-exec-standardoutput-output
|
|
|
|
StandardError=null
|
|
|
|
ExecStart=cat
|
|
|
|
ExecStart=cmp /tmp/test-exec-standardoutput-expected /tmp/test-exec-standardoutput-output
|
|
|
|
Type=oneshot
|