]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-standardoutput-append.service
core,journald: use quoted commandlines
[thirdparty/systemd.git] / test / test-execute / exec-standardoutput-append.service
1 [Unit]
2 Description=Test for StandardOutput=append:
3
4 [Service]
5 ExecStartPre=sh -c 'printf "hello\n" > /tmp/test-exec-standardoutput-output'
6 ExecStartPre=sh -c 'printf "hello\nhello\n" > /tmp/test-exec-standardoutput-expected'
7 StandardInput=data
8 StandardInputText=hello
9 StandardOutput=append:/tmp/test-exec-standardoutput-output
10 StandardError=null
11 ExecStart=cat
12 ExecStart=cmp /tmp/test-exec-standardoutput-output /tmp/test-exec-standardoutput-expected
13 Type=oneshot