Debian Codegraph @

test/testdata/test-execute/exec-standardoutput-append.service

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for StandardOutput=append:
4
5 [Service]
6 ExecStartPre=bash -c 'printf "hello\n" >/tmp/test-exec-standardoutput-output'
7 ExecStartPre=bash -c 'printf "hello\nhello\n" >/tmp/test-exec-standardoutput-expected'
8 StandardInput=data
9 StandardInputText=hello
10 StandardOutput=append:/tmp/test-exec-standardoutput-output
11 StandardError=null
12 ExecStart=cat
13 ExecStart=cmp /tmp/test-exec-standardoutput-output /tmp/test-exec-standardoutput-expected
14 Type=oneshot