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