]>
Commit | Line | Data |
---|---|---|
566b7d23 ZD |
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 |